diff options
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)) { |
