From 1cb05e036482bee05a4fef619a9a4b7a9c62b416 Mon Sep 17 00:00:00 2001 From: Jasper De Moor Date: Thu, 24 May 2018 15:03:33 +0200 Subject: [PATCH] Fix failing appveyor test (#1431) Fixes a failing appveyor html test --- test/html.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/html.js b/test/html.js index 16cefe46877..d487e3355de 100644 --- a/test/html.js +++ b/test/html.js @@ -1,6 +1,7 @@ const assert = require('assert'); const fs = require('fs'); const {bundle, assertBundleTree} = require('./utils'); +const path = require('path'); describe('html', function() { it('should support bundling HTML', async function() { @@ -107,7 +108,10 @@ describe('html', function() { __dirname + '/integration/posthtml-assets/index.html' ); const asset = b.assets.values().next().value; - const other = __dirname + '/integration/posthtml-assets/other.html'; + const other = path.join( + __dirname, + '/integration/posthtml-assets/other.html' + ); assert(asset.dependencies.has(other)); assert(asset.dependencies.get(other).includedInParent); });