8000 #81: fixes windows test cases · kaelzhang/node-ignore@189ff4f · GitHub
[go: up one dir, main page]

Skip to content

Commit 189ff4f

Browse files
committed
#81: fixes windows test cases
1 parent a514e5e commit 189ff4f

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

test/fixtures/cases.js

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,6 @@ const cases = [
2222
// }
2323
// ],
2424
/////////////////////////////////////////////////////////////////////
25-
[
26-
'#81: invalid trailing backslash at the end should not throw',
27-
[
28-
'test\\',
29-
'testa\\\\',
30-
'foo/*',
31-
// test negative pattern
32-
'!foo/test\\'
33-
],
34-
{
35-
'test': 0,
36-
'test\\': 0,
37-
'testa\\': 1,
38-
'foo/test\\': 1
39-
}
40-
],
4125
[
4226
'#76 (invalid), comments with no heading whitespace',
4327
[
@@ -928,12 +912,21 @@ const IS_WINDOWS = process.platform === 'win32'
928912
if (!IS_WINDOWS && !process.env.IGNORE_TEST_WIN32) {
929913
cases.push(
930914
[
931-
'#81: invalid trailing backslash, test non-windows only',
915+
'#81: invalid trailing backslash at the end should not throw, test non-windows env only',
932916
[
933-
'\\'
917+
'test\\',
918+
'testa\\\\',
919+
'\\',
920+
'foo/*',
921+
// test negative pattern
922+
'!foo/test\\'
934923
],
935924
{
936-
'\\': 0
925+
'test': 0,
926+
'test\\': 581C 0,
927+
'testa\\': 1,
928+
'\\': 0,
929+
'foo/test\\': 1
937930
}
938931
],
939932
[

0 commit comments

Comments
 (0)
0