Skip to content

Commit

Permalink
test unix path so win32 has full coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 16, 2022
1 parent a000988 commit dfa4f22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/win-path-sep.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
const t = require('tap')
t.test('path separator /', t => {
const mm = t.mock('../', { path: { sep: '/' }})

t.equal(mm('x/y/z', 'x/y/*/z'), false)
t.equal(mm('x/y/w/z', 'x/y/*/z'), true)
t.end()
})

t.test('path separator \\', t => {
const mm = t.mock('../', { path: { sep: '\\' }})

Expand Down

0 comments on commit dfa4f22

Please sign in to comment.