aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)) {