Skip to content

Commit af42ccb

Browse files
authored
Update snapshot format for input (#2805)
1 parent 6e7f93c commit af42ccb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+948
-2563
lines changed

test/snapshots/explicit-length-check.js.md

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,10 @@ Generated by [AVA](https://avajs.dev).
802802
> Input
803803
804804
`␊
805+
Options:␊
806+
- non-zero: 'not-equal'␊
807+
808+
Code:␊
805809
1 | if (␊
806810
2 | foo.length ||␊
807811
3 | !!foo.length ||␊
@@ -815,16 +819,6 @@ Generated by [AVA](https://avajs.dev).
815819
11 | ) {}␊
816820
`
817821

818-
> Options
819-
820-
`␊
821-
[␊
822-
{␊
823-
"non-zero": "not-equal"␊
824-
}␊
825-
]␊
826-
`
827-
828822
> Error 1/9
829823
830824
`␊
@@ -1109,19 +1103,13 @@ Generated by [AVA](https://avajs.dev).
11091103
> Input
11101104
11111105
`␊
1106+
Options:␊
1107+
- non-zero: 'not-equal'␊
1108+
1109+
Code:␊
11121110
1 | const foo = { length: 123 }; if (foo.length) {}␊
11131111
`
11141112

1115-
> Options
1116-
1117-
`␊
1118-
[␊
1119-
{␊
1120-
"non-zero": "not-equal"␊
1121-
}␊
1122-
]␊
1123-
`
1124-
11251113
> Error 1/1
11261114
11271115
`␊
@@ -1897,19 +1885,13 @@ Generated by [AVA](https://avajs.dev).
18971885
> Input
18981886
18991887
`␊
1888+
Options:␊
1889+
- non-zero: 'not-equal'␊
1890+
1891+
Code:␊
19001892
1 | <template><div v-if="foo.length"></div></template>␊
19011893
`
19021894

1903-
> Options
1904-
1905-
`␊
1906-
[␊
1907-
{␊
1908-
"non-zero": "not-equal"␊
1909-
}␊
1910-
]␊
1911-
`
1912-
19131895
> Error 1/1
19141896
19151897
`␊
@@ -1926,19 +1908,13 @@ Generated by [AVA](https://avajs.dev).
19261908
> Input
19271909
19281910
`␊
1911+
Options:␊
1912+
- non-zero: 'greater-than'␊
1913+
1914+
Code:␊
19291915
1 | <template><div v-if="foo.length"></div></template>␊
19301916
`
19311917

1932-
> Options
1933-
1934-
`␊
1935-
[␊
1936-
{␊
1937-
"non-zero": "greater-than"␊
1938-
}␊
1939-
]␊
1940-
`
1941-
19421918
> Error 1/1
19431919
19441920
`␊
-8 Bytes
Binary file not shown.

test/snapshots/filename-case.js.md

Lines changed: 12 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ Generated by [AVA](https://avajs.dev).
66

77
## invalid(1): foo(); foo(); foo(); foo(); foo(); foo(); foo(); foo(); foo(); foo();
88

9-
> Input
9+
> Input 'src/foo/foo_bar.mJS'
1010
1111
`␊
12+
Options:␊
13+
- cases:␊
14+
camelCase: true␊
15+
kebabCase: true␊
16+
17+
Code:␊
1218
1 | foo();␊
1319
2 | foo();␊
1420
3 | foo();␊
@@ -22,25 +28,6 @@ Generated by [AVA](https://avajs.dev).
2228
11 |␊
2329
`
2430

25-
> Filename
26-
27-
`␊
28-
src/foo/foo_bar.mJS␊
29-
`
30-
31-
> Options
32-
33-
`␊
34-
[␊
35-
{␊
36-
"cases": {␊
37-
"camelCase": true,␊
38-
"kebabCase": true␊
39-
}␊
40-
}␊
41-
]␊
42-
`
43-
4431
> Error 1/1
4532
4633
`␊
@@ -61,18 +48,12 @@ Generated by [AVA](https://avajs.dev).
6148

6249
## invalid(2): /* Filename foo.JS */
6350

64-
> Input
51+
> Input 'foo.JS'
6552
6653
`␊
6754
1 | /* Filename foo.JS */␊
6855
`
6956

70-
> Filename
71-
72-
`␊
73-
foo.JS␊
74-
`
75-
7657
> Error 1/1
7758
7859
`␊
@@ -83,18 +64,12 @@ Generated by [AVA](https://avajs.dev).
8364

8465
## invalid(3): /* Filename foo.Js */
8566

86-
> Input
67+
> Input 'foo.Js'
8768
8869
`␊
8970
1 | /* Filename foo.Js */␊
9071
`
9172

92-
> Filename
93-
94-
`␊
95-
foo.Js␊
96-
`
97-
9873
> Error 1/1
9974
10075
`␊
@@ -105,18 +80,12 @@ Generated by [AVA](https://avajs.dev).
10580

10681
## invalid(4): /* Filename foo.jS */
10782

108-
> Input
83+
> Input 'foo.jS'
10984
11085
`␊
11186
1 | /* Filename foo.jS */␊
11287
`
11388

114-
> Filename
115-
116-
`␊
117-
foo.jS␊
118-
`
119-
12089
> Error 1/1
12190
12291
`␊
@@ -127,18 +96,12 @@ Generated by [AVA](https://avajs.dev).
12796

12897
## invalid(5): /* Filename index.JS */
12998

130-
> Input
99+
> Input 'index.JS'
131100
132101
`␊
133102
1 | /* Filename index.JS */␊
134103
`
135104

136-
> Filename
137-
138-
`␊
139-
index.JS␊
140-
`
141-
142105
> Error 1/1
143106
144107
`␊
@@ -149,18 +112,12 @@ Generated by [AVA](https://avajs.dev).
149112

150113
## invalid(6): /* Filename foo..JS */
151114

152-
> Input
115+
> Input 'foo..JS'
153116
154117
`␊
155118
1 | /* Filename foo..JS */␊
156119
`
157120

158-
> Filename
159-
160-
`␊
161-
foo..JS␊
162-
`
163-
164121
> Error 1/1
165122
166123
`␊
-41 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)