Skip to content

Commit c202346

Browse files
XhmikosRnickmerwin
authored andcommitted
Fix Windows tests again.
1 parent 3d82534 commit c202346

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/convertLcovToCoveralls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe('convertLcovToCoveralls', () => {
8787
fs.existsSync = originalExistsSync;
8888

8989
should.not.exist(err);
90-
output.source_files[0].name.should.equal(path.join("svgo", "config.js"));
90+
output.source_files[0].name.should.equal(path.posix.join("svgo", "config.js"));
9191
done();
9292
});
9393
});
@@ -174,7 +174,7 @@ describe('convertLcovToCoveralls', () => {
174174
fs.existsSync = originalExistsSync;
175175

176176
should.not.exist(err);
177-
output.source_files[0].name.should.equal(path.join('svgo', 'config.js'));
177+
output.source_files[0].name.should.equal(path.posix.join('svgo', 'config.js'));
178178
done();
179179
});
180180
});

test/detectLocalGit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ function _cleanTempGitDir() {
5454
}
5555

5656
function _deleteFolderRecursive(dir) {
57-
if (!dir.match('node-coveralls/test')) {
58-
throw new Error('Tried to clean a temp git directory that did not match path: node-coveralls/test');
57+
if (!dir.includes(path.normalize('node-coveralls/test'))) {
58+
throw new Error(`Tried to clean a temp git directory that did not match path: ${path.normalize('node-coveralls/test')}`);
5959
}
6060

6161
if (fs.existsSync(dir)) {

0 commit comments

Comments
 (0)