diff options
| author | XhmikosR <[email protected]> | 2019-11-21 08:32:08 +0200 |
|---|---|---|
| committer | Nick Merwin <[email protected]> | 2019-11-25 13:20:10 -0800 |
| commit | c202346ff899b5025fc31a0756fbae15fcf473f3 (patch) | |
| tree | 1a3a71302f5a8727fe9129c241d238f6c64a0767 /test/detectLocalGit.js | |
| parent | 3d825344c0600477bd1e1716c54712fd3820bf8d (diff) | |
| download | node-coveralls-c202346ff899b5025fc31a0756fbae15fcf473f3.tar.xz node-coveralls-c202346ff899b5025fc31a0756fbae15fcf473f3.zip | |
Fix Windows tests again.
Diffstat (limited to 'test/detectLocalGit.js')
| -rw-r--r-- | test/detectLocalGit.js | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |
