Skip to content

Commit d38ea52

Browse files
BPScottnot-an-aardvark
authored andcommitted
Chore: Rename test files to keep them sequential
1 parent 3af422c commit d38ea52

File tree

8 files changed

+43
-43
lines changed

8 files changed

+43
-43
lines changed

test/invalid/12.txt

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
CODE:
2+
var foo ='';var bar ='';var baz ='';
3+
4+
OUTPUT:
5+
var foo = "";
6+
var bar = "";
7+
var baz = "";
8+
9+
OPTIONS:
10+
[]
11+
12+
ERRORS:
13+
[
14+
{
15+
message: 'Replace `\'\';var·bar·=\'\';var·baz·=\'\'` with `·"";⏎var·bar·=·"";⏎var·baz·=·""`',
16+
line: 1, column: 10, endLine: 1, endColumn: 36,
17+
},
18+
]

test/invalid/13.txt

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CODE:
2-
var foo ='';var bar ='';var baz ='';
2+
var foo ='';var bar ='';
3+
var baz ='';
34

45
OUTPUT:
56
var foo = "";
@@ -12,7 +13,11 @@ OPTIONS:
1213
ERRORS:
1314
[
1415
{
15-
message: 'Replace `\'\';var·bar·=\'\';var·baz·=\'\'` with `·"";⏎var·bar·=·"";⏎var·baz·=·""`',
16-
line: 1, column: 10, endLine: 1, endColumn: 36,
16+
message: 'Replace `\'\';var·bar·=\'\'` with `·"";⏎var·bar·=·""`',
17+
line: 1, column: 10, endLine: 1, endColumn: 24,
18+
},
19+
{
20+
message: 'Replace `\'\'` with `·""`',
21+
line: 2, column: 10, endLine: 2, endColumn: 12,
1722
},
1823
]

test/invalid/14.txt

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
CODE:
2-
var foo ='';var bar ='';
3-
var baz ='';
2+
var foo = { "bar": "", "baz": "" };
43

54
OUTPUT:
6-
var foo = "";
7-
var bar = "";
8-
var baz = "";
5+
var foo = { bar: "", baz: "" };
96

107
OPTIONS:
118
[]
129

1310
ERRORS:
1411
[
1512
{
16-
message: 'Replace `\'\';var·bar·=\'\'` with `·"";⏎var·bar·=·""`',
17-
line: 1, column: 10, endLine: 1, endColumn: 24,
18-
},
19-
{
20-
message: 'Replace `\'\'` with `·""`',
21-
line: 2, column: 10, endLine: 2, endColumn: 12,
13+
message: 'Replace `"bar":·"",·"baz"` with `bar:·"",·baz`',
14+
line: 1, column: 13, endLine: 1, endColumn: 29,
2215
},
2316
]

test/invalid/15.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
CODE:
2-
var foo = { "bar": "", "baz": "" };
3-
2+
var foo = ''
43
OUTPUT:
5-
var foo = { bar: "", baz: "" };
4+
var foo = "";
65

76
OPTIONS:
87
[]
98

109
ERRORS:
1110
[
1211
{
13-
message: 'Replace `"bar":·"",·"baz"` with `bar:·"",·baz`',
14-
line: 1, column: 13, endLine: 1, endColumn: 29,
12+
message: 'Replace `\'\'` with `"";⏎`',
13+
line: 1, column: 11, endLine: 1, endColumn: 13,
1514
},
1615
]

test/invalid/16.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CODE:
2-
var foo = ''
2+
var foo = "";
33
OUTPUT:
44
var foo = "";
55

@@ -9,7 +9,7 @@ OPTIONS:
99
ERRORS:
1010
[
1111
{
12-
message: 'Replace `\'\'` with `"";⏎`',
13-
line: 1, column: 11, endLine: 1, endColumn: 13,
12+
message: 'Insert `⏎`',
13+
line: 1, column: 14, endLine: 1, endColumn: 14,
1414
},
1515
]

test/invalid/17.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
CODE:
2+
23
var foo = "";
4+
35
OUTPUT:
46
var foo = "";
57

@@ -9,7 +11,7 @@ OPTIONS:
911
ERRORS:
1012
[
1113
{
12-
message: 'Insert `⏎`',
13-
line: 1, column: 14, endLine: 1, endColumn: 14,
14+
message: 'Delete `⏎`',
15+
line: 1, column: 1, endLine: 2, endColumn: 1,
1416
},
1517
]

test/invalid/18.txt

-17
This file was deleted.

test/prettier.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ ruleTester.run('prettier', rule, {
8585
'10',
8686
'11-a',
8787
'11-b',
88+
'12',
8889
'13',
8990
'14',
9091
'15',
9192
'16',
92-
'17',
93-
'18'
93+
'17'
9494
].map(loadInvalidFixture)
9595
});
9696

0 commit comments

Comments
 (0)