diff --git a/test/spec.js b/test/spec.js index 3729506..c2c37a4 100644 --- a/test/spec.js +++ b/test/spec.js @@ -4,7 +4,8 @@ const {main, parseArgs} = require('../src/main'); const inFile = path.normalize('./data/some/index.html'); function read(file) { - if (path.normalize(file) === path.normalize(inFile)) return ``; + if (path.normalize(file) === inFile) +return ``; throw new Error(`no content for ${file}`); } @@ -318,4 +319,4 @@ describe('parseArgs', () => { expect(assets).toEqual(["./a", "./b"]); expect(rootDirs).toEqual(["/c/", "/d/"]); }); -}); \ No newline at end of file +});