Skip to content

Commit

Permalink
Fix Windows tests again.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and nickmerwin committed Nov 25, 2019
1 parent 3d82534 commit c202346
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/convertLcovToCoveralls.js
Expand Up @@ -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();
});
});
Expand Down Expand Up @@ -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();
});
});
Expand Down
4 changes: 2 additions & 2 deletions test/detectLocalGit.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit c202346

Please sign in to comment.