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 a514e5e commit 189ff4f
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions test/fixtures/cases.js
Expand Up @@ -22,22 +22,6 @@ const cases = [
// }
// ],
/////////////////////////////////////////////////////////////////////
[
'#81: invalid trailing backslash at the end should not throw',
[
'test\\',
'testa\\\\',
'foo/*',
// test negative pattern
'!foo/test\\'
],
{
'test': 0,
'test\\': 0,
'testa\\': 1,
'foo/test\\': 1
}
],
[
'#76 (invalid), comments with no heading whitespace',
[
Expand Down Expand Up @@ -928,12 +912,21 @@ const IS_WINDOWS = process.platform === 'win32'
if (!IS_WINDOWS && !process.env.IGNORE_TEST_WIN32) {
cases.push(
[
'#81: invalid trailing backslash, test non-windows only',
'#81: invalid trailing backslash at the end should not throw, test non-windows env only',
[
'\\'
'test\\',
'testa\\\\',
'\\',
'foo/*',
// test negative pattern
'!foo/test\\'
],
{
'\\': 0
'test': 0,
'test\\': 0,
'testa\\': 1,
'\\': 0,
'foo/test\\': 1
}
],
[
Expand Down

0 comments on commit 189ff4f

Please sign in to comment.