aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-11-21 08:32:08 +0200
committerNick Merwin <[email protected]>2019-11-25 13:20:10 -0800
commitc202346ff899b5025fc31a0756fbae15fcf473f3 (patch)
tree1a3a71302f5a8727fe9129c241d238f6c64a0767 /test
parent3d825344c0600477bd1e1716c54712fd3820bf8d (diff)
downloadnode-coveralls-c202346ff899b5025fc31a0756fbae15fcf473f3.tar.xz
node-coveralls-c202346ff899b5025fc31a0756fbae15fcf473f3.zip
Fix Windows tests again.
Diffstat (limited to 'test')
-rw-r--r--test/convertLcovToCoveralls.js4
-rw-r--r--test/detectLocalGit.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/convertLcovToCoveralls.js b/test/convertLcovToCoveralls.js
index 2cfc856..438b496 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 5a6fc7d..d2ad525 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)) {