Skip to content

Commit dfa4f22

Browse files
committed
test unix path so win32 has full coverage
1 parent a000988 commit dfa4f22

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/win-path-sep.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
const t = require('tap')
2+
t.test('path separator /', t => {
3+
const mm = t.mock('../', { path: { sep: '/' }})
4+
5+
t.equal(mm('x/y/z', 'x/y/*/z'), false)
6+
t.equal(mm('x/y/w/z', 'x/y/*/z'), true)
7+
t.end()
8+
})
9+
210
t.test('path separator \\', t => {
311
const mm = t.mock('../', { path: { sep: '\\' }})
412

0 commit comments

Comments
 (0)