Skip to content

Commit 89c868c

Browse files
committed
test: fix ENOTDIR test on windows
Windows raises EEXIST in this case, not ENOTDIR.
1 parent a824773 commit 89c868c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/basic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ test('fails if mkdir fails', t => {
6262
var from = path.resolve(fixtures, 'from.env')
6363
var to = path.resolve(fixtures, 'from.env/a/b/c')
6464
cmdShim(from, to, er => {
65-
t.match(er, { code: 'ENOTDIR' })
65+
t.match(er, { code: /^(ENOTDIR|EEXIST)$/ })
6666
t.end()
6767
})
6868
})

0 commit comments

Comments
 (0)