From dfa4f221e26891bc18f78e49d4d8dc366f3082e5 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 15 Feb 2022 17:04:02 -0800 Subject: [PATCH] test unix path so win32 has full coverage --- test/win-path-sep.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/win-path-sep.js b/test/win-path-sep.js index 6b2c9e66..95679d3f 100644 --- a/test/win-path-sep.js +++ b/test/win-path-sep.js @@ -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: '\\' }})