diff --git a/test/convertLcovToCoveralls.js b/test/convertLcovToCoveralls.js index 2cfc8569..438b4962 100644 --- a/test/convertLcovToCoveralls.js +++ b/test/convertLcovToCoveralls.js @@ -87,7 +87,7 @@ describe('convertLcovToCoveralls', () => { fs.existsSync = originalExistsSync; should.not.exist(err); - output.source_files[0].name.should.equal(path.join("svgo", "config.js")); + output.source_files[0].name.should.equal(path.posix.join("svgo", "config.js")); done(); }); }); @@ -174,7 +174,7 @@ describe('convertLcovToCoveralls', () => { fs.existsSync = originalExistsSync; should.not.exist(err); - output.source_files[0].name.should.equal(path.join('svgo', 'config.js')); + output.source_files[0].name.should.equal(path.posix.join('svgo', 'config.js')); done(); }); }); diff --git a/test/detectLocalGit.js b/test/detectLocalGit.js index 5a6fc7db..d2ad525e 100644 --- a/test/detectLocalGit.js +++ b/test/detectLocalGit.js @@ -54,8 +54,8 @@ function _cleanTempGitDir() { } function _deleteFolderRecursive(dir) { - if (!dir.match('node-coveralls/test')) { - throw new Error('Tried to clean a temp git directory that did not match path: node-coveralls/test'); + if (!dir.includes(path.normalize('node-coveralls/test'))) { + throw new Error(`Tried to clean a temp git directory that did not match path: ${path.normalize('node-coveralls/test')}`); } if (fs.existsSync(dir)) {