aboutsummaryrefslogtreecommitdiff
path: root/test/detectLocalGit.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-11-21 02:47:15 +0200
committerNick Merwin <[email protected]>2019-11-20 16:47:15 -0800
commiteba01a29c69f28ffd7f50556492a43b5ba2486d7 (patch)
treedd0773f3cdc01f87c99be6baf61fa9eb0e3bd7b0 /test/detectLocalGit.js
parentcbc1bdf5ab1c48e5c6a59d229e4e601bd25f351d (diff)
downloadnode-coveralls-eba01a29c69f28ffd7f50556492a43b5ba2486d7.tar.xz
node-coveralls-eba01a29c69f28ffd7f50556492a43b5ba2486d7.zip
Fix tests on Windows. (#237)
Diffstat (limited to 'test/detectLocalGit.js')
-rw-r--r--test/detectLocalGit.js4
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)) {