@@ -6,7 +6,7 @@ const ruleTester = createRuleTester();
6
6
7
7
ruleTester . run ( RULE_NAME , rule , {
8
8
valid : [
9
- ...ASYNC_UTILS . map ( asyncUtil => ( {
9
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
10
10
code : `
11
11
import { ${ asyncUtil } } from '@testing-library/dom';
12
12
test('snapshot calls outside of ${ asyncUtil } are valid', () => {
@@ -16,7 +16,7 @@ ruleTester.run(RULE_NAME, rule, {
16
16
})
17
17
` ,
18
18
} ) ) ,
19
- ...ASYNC_UTILS . map ( asyncUtil => ( {
19
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
20
20
code : `
21
21
import { ${ asyncUtil } } from '@testing-library/dom';
22
22
test('snapshot calls outside of ${ asyncUtil } are valid', () => {
@@ -28,7 +28,7 @@ ruleTester.run(RULE_NAME, rule, {
28
28
})
29
29
` ,
30
30
} ) ) ,
31
- ...ASYNC_UTILS . map ( asyncUtil => ( {
31
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
32
32
code : `
33
33
import * as asyncUtils from '@testing-library/dom';
34
34
test('snapshot calls outside of ${ asyncUtil } are valid', () => {
@@ -38,7 +38,7 @@ ruleTester.run(RULE_NAME, rule, {
38
38
})
39
39
` ,
40
40
} ) ) ,
41
- ...ASYNC_UTILS . map ( asyncUtil => ( {
41
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
42
42
code : `
43
43
import * as asyncUtils from '@testing-library/dom';
44
44
test('snapshot calls outside of ${ asyncUtil } are valid', () => {
@@ -50,15 +50,15 @@ ruleTester.run(RULE_NAME, rule, {
50
50
})
51
51
` ,
52
52
} ) ) ,
53
- ...ASYNC_UTILS . map ( asyncUtil => ( {
53
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
54
54
code : `
55
55
import { ${ asyncUtil } } from 'some-other-library';
56
56
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
57
57
await ${ asyncUtil } (() => expect(foo).toMatchSnapshot());
58
58
});
59
59
` ,
60
60
} ) ) ,
61
- ...ASYNC_UTILS . map ( asyncUtil => ( {
61
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
62
62
code : `
63
63
import { ${ asyncUtil } } from 'some-other-library';
64
64
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -68,15 +68,15 @@ ruleTester.run(RULE_NAME, rule, {
68
68
});
69
69
` ,
70
70
} ) ) ,
71
- ...ASYNC_UTILS . map ( asyncUtil => ( {
71
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
72
72
code : `
73
73
import * as asyncUtils from 'some-other-library';
74
74
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
75
75
await asyncUtils.${ asyncUtil } (() => expect(foo).toMatchSnapshot());
76
76
});
77
77
` ,
78
78
} ) ) ,
79
- ...ASYNC_UTILS . map ( asyncUtil => ( {
79
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
80
80
code : `
81
81
import * as asyncUtils from 'some-other-library';
82
82
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -86,15 +86,15 @@ ruleTester.run(RULE_NAME, rule, {
86
86
});
87
87
` ,
88
88
} ) ) ,
89
- ...ASYNC_UTILS . map ( asyncUtil => ( {
89
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
90
90
code : `
91
91
import { ${ asyncUtil } } from 'some-other-library';
92
92
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
93
93
await ${ asyncUtil } (() => expect(foo).toMatchInlineSnapshot());
94
94
});
95
95
` ,
96
96
} ) ) ,
97
- ...ASYNC_UTILS . map ( asyncUtil => ( {
97
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
98
98
code : `
99
99
import { ${ asyncUtil } } from 'some-other-library';
100
100
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -104,15 +104,15 @@ ruleTester.run(RULE_NAME, rule, {
104
104
});
105
105
` ,
106
106
} ) ) ,
107
- ...ASYNC_UTILS . map ( asyncUtil => ( {
107
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
108
108
code : `
109
109
import * as asyncUtils from 'some-other-library';
110
110
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
111
111
await asyncUtils.${ asyncUtil } (() => expect(foo).toMatchInlineSnapshot());
112
112
});
113
113
` ,
114
114
} ) ) ,
115
- ...ASYNC_UTILS . map ( asyncUtil => ( {
115
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
116
116
code : `
117
117
import * as asyncUtils from 'some-other-library';
118
118
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -124,7 +124,7 @@ ruleTester.run(RULE_NAME, rule, {
124
124
} ) ) ,
125
125
] ,
126
126
invalid : [
127
- ...ASYNC_UTILS . map ( asyncUtil => ( {
127
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
128
128
code : `
129
129
import { ${ asyncUtil } } from '@testing-library/dom';
130
130
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -133,7 +133,7 @@ ruleTester.run(RULE_NAME, rule, {
133
133
` ,
134
134
errors : [ { line : 4 , messageId : 'noWaitForSnapshot' } ] ,
135
135
} ) ) ,
136
- ...ASYNC_UTILS . map ( asyncUtil => ( {
136
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
137
137
code : `
138
138
import { ${ asyncUtil } } from '@testing-library/dom';
139
139
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -144,7 +144,7 @@ ruleTester.run(RULE_NAME, rule, {
144
144
` ,
145
145
errors : [ { line : 5 , messageId : 'noWaitForSnapshot' } ] ,
146
146
} ) ) ,
147
- ...ASYNC_UTILS . map ( asyncUtil => ( {
147
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
148
148
code : `
149
149
import * as asyncUtils from '@testing-library/dom';
150
150
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -153,7 +153,7 @@ ruleTester.run(RULE_NAME, rule, {
153
153
` ,
154
154
errors : [ { line : 4 , messageId : 'noWaitForSnapshot' } ] ,
155
155
} ) ) ,
156
- ...ASYNC_UTILS . map ( asyncUtil => ( {
156
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
157
157
code : `
158
158
import * as asyncUtils from '@testing-library/dom';
159
159
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -164,7 +164,7 @@ ruleTester.run(RULE_NAME, rule, {
164
164
` ,
165
165
errors : [ { line : 5 , messageId : 'noWaitForSnapshot' } ] ,
166
166
} ) ) ,
167
- ...ASYNC_UTILS . map ( asyncUtil => ( {
167
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
168
168
code : `
169
169
import { ${ asyncUtil } } from '@testing-library/dom';
170
170
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -173,7 +173,7 @@ ruleTester.run(RULE_NAME, rule, {
173
173
` ,
174
174
errors : [ { line : 4 , messageId : 'noWaitForSnapshot' } ] ,
175
175
} ) ) ,
176
- ...ASYNC_UTILS . map ( asyncUtil => ( {
176
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
177
177
code : `
178
178
import { ${ asyncUtil } } from '@testing-library/dom';
179
179
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -184,7 +184,7 @@ ruleTester.run(RULE_NAME, rule, {
184
184
` ,
185
185
errors : [ { line : 5 , messageId : 'noWaitForSnapshot' } ] ,
186
186
} ) ) ,
187
- ...ASYNC_UTILS . map ( asyncUtil => ( {
187
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
188
188
code : `
189
189
import * as asyncUtils from '@testing-library/dom';
190
190
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
@@ -193,7 +193,7 @@ ruleTester.run(RULE_NAME, rule, {
193
193
` ,
194
194
errors : [ { line : 4 , messageId : 'noWaitForSnapshot' } ] ,
195
195
} ) ) ,
196
- ...ASYNC_UTILS . map ( asyncUtil => ( {
196
+ ...ASYNC_UTILS . map ( ( asyncUtil ) => ( {
197
197
code : `
198
198
import * as asyncUtils from '@testing-library/dom';
199
199
test('snapshot calls within ${ asyncUtil } are not valid', async () => {
0 commit comments