diff options
| author | XhmikosR <[email protected]> | 2019-11-21 02:47:15 +0200 |
|---|---|---|
| committer | Nick Merwin <[email protected]> | 2019-11-20 16:47:15 -0800 |
| commit | eba01a29c69f28ffd7f50556492a43b5ba2486d7 (patch) | |
| tree | dd0773f3cdc01f87c99be6baf61fa9eb0e3bd7b0 /test/detectLocalGit.js | |
| parent | cbc1bdf5ab1c48e5c6a59d229e4e601bd25f351d (diff) | |
| download | node-coveralls-eba01a29c69f28ffd7f50556492a43b5ba2486d7.tar.xz node-coveralls-eba01a29c69f28ffd7f50556492a43b5ba2486d7.zip | |
Fix tests on Windows. (#237)
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 64da493..bc3158c 100644 --- a/test/detectLocalGit.js +++ b/test/detectLocalGit.js @@ -57,8 +57,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)) { |
