Skip to content

Commit

Permalink
#81: fixes windows test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Dec 19, 2022
1 parent 1e0235c commit a514e5e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/fixtures/cases.js
Expand Up @@ -27,13 +27,11 @@ const cases = [
[
'test\\',
'testa\\\\',
'\\',
'foo/*',
// test negative pattern
'!foo/test\\'
],
{
'\\': 0,
'test': 0,
'test\\': 0,
'testa\\': 1,
Expand Down Expand Up @@ -929,6 +927,15 @@ const cases = [
const IS_WINDOWS = process.platform === 'win32'
if (!IS_WINDOWS && !process.env.IGNORE_TEST_WIN32) {
cases.push(
[
'#81: invalid trailing backslash, test non-windows only',
[
'\\'
],
{
'\\': 0
}
],
[
'linux: back slashes on paths',
[
Expand Down

0 comments on commit a514e5e

Please sign in to comment.