Skip to content

Commit 148ba97

Browse files
committed
fix lint
1 parent 3ec550d commit 148ba97

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

packages/@react-spectrum/s2/style/__tests__/style-macro.test.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('style-macro', () => {
5959
6060
"
6161
`);
62-
expect(js).toMatchInlineSnapshot(`" Jbs12 Jbpv12 -macro-static-EVNQL"`);
62+
expect(js).toMatchInlineSnapshot('" Jbs12 Jbpv12 -macro-static-EVNQL"');
6363
});
6464

6565
it('should support self references', () => {
@@ -125,7 +125,7 @@ describe('style-macro', () => {
125125
"
126126
`);
127127

128-
expect(js).toMatchInlineSnapshot(`" _kc12 hc12 mCPFGYc12 lc12 SMBFGYc12 Rv12 ZjUQgKd12 -m_-mc12 -S_-Sv12 -macro-static-qHi23"`);
128+
expect(js).toMatchInlineSnapshot('" _kc12 hc12 mCPFGYc12 lc12 SMBFGYc12 Rv12 ZjUQgKd12 -m_-mc12 -S_-Sv12 -macro-static-qHi23"');
129129
});
130130

131131
it('should support allowed overrides', () => {
@@ -142,9 +142,9 @@ describe('style-macro', () => {
142142
color: 'green-400'
143143
});
144144

145-
expect(js()).toMatchInlineSnapshot(`" gw12 pg12 -macro-dynamic-1xxglvk"`);
146-
expect(overrides).toMatchInlineSnapshot(`" g8tmWqb12 pHJ3AUd12 -macro-static-Su6dhb"`);
147-
expect(js({}, overrides)).toMatchInlineSnapshot(`" g8tmWqb12 pg12 -macro-dynamic-jk90zw"`);
145+
expect(js()).toMatchInlineSnapshot('" gw12 pg12 -macro-dynamic-1xxglvk"');
146+
expect(overrides).toMatchInlineSnapshot('" g8tmWqb12 pHJ3AUd12 -macro-static-Su6dhb"');
147+
expect(js({}, overrides)).toMatchInlineSnapshot('" g8tmWqb12 pg12 -macro-dynamic-jk90zw"');
148148
});
149149

150150
it('should support allowed overrides for properties that expand into multiple', () => {
@@ -159,9 +159,9 @@ describe('style-macro', () => {
159159
translateX: 40
160160
});
161161

162-
expect(js()).toMatchInlineSnapshot(`" -_7PloMd-B12 __Ya12 -macro-dynamic-1nf427l"`);
163-
expect(overrides).toMatchInlineSnapshot(`" -_7PloMd-D12 __Ya12 -macro-static-ZCkud"`);
164-
expect(js({}, overrides)).toMatchInlineSnapshot(`" -_7PloMd-D12 __Ya12 -macro-dynamic-1pnuhyr"`);
162+
expect(js()).toMatchInlineSnapshot('" -_7PloMd-B12 __Ya12 -macro-dynamic-1nf427l"');
163+
expect(overrides).toMatchInlineSnapshot('" -_7PloMd-D12 __Ya12 -macro-static-ZCkud"');
164+
expect(js({}, overrides)).toMatchInlineSnapshot('" -_7PloMd-D12 __Ya12 -macro-dynamic-1pnuhyr"');
165165
});
166166

167167
it('should support allowed overrides for shorthands', () => {
@@ -176,9 +176,9 @@ describe('style-macro', () => {
176176
padding: 40
177177
});
178178

179-
expect(js()).toMatchInlineSnapshot(`" Tk12 Qk12 Sk12 Rk12 -macro-dynamic-1w5dwn"`);
180-
expect(overrides).toMatchInlineSnapshot(`" Tm12 Qm12 Sm12 Rm12 -macro-static-FQziuc"`);
181-
expect(js({}, overrides)).toMatchInlineSnapshot(`" Tm12 Qm12 Sm12 Rm12 -macro-dynamic-p1i90v"`);
179+
expect(js()).toMatchInlineSnapshot('" Tk12 Qk12 Sk12 Rk12 -macro-dynamic-1w5dwn"');
180+
expect(overrides).toMatchInlineSnapshot('" Tm12 Qm12 Sm12 Rm12 -macro-static-FQziuc"');
181+
expect(js({}, overrides)).toMatchInlineSnapshot('" Tm12 Qm12 Sm12 Rm12 -macro-dynamic-p1i90v"');
182182
});
183183

184184
it("should support allowed overrides for values that aren't defined", () => {
@@ -193,9 +193,9 @@ describe('style-macro', () => {
193193
minWidth: 32
194194
});
195195

196-
expect(js()).toMatchInlineSnapshot(`" gE12 -macro-dynamic-nl2mms"`);
197-
expect(overrides).toMatchInlineSnapshot(`" Nk12 -macro-static-pDx0l"`);
198-
expect(js({}, overrides)).toMatchInlineSnapshot(`" Nk12 gE12 -macro-dynamic-11y5vdc"`);
196+
expect(js()).toMatchInlineSnapshot('" gE12 -macro-dynamic-nl2mms"');
197+
expect(overrides).toMatchInlineSnapshot('" Nk12 -macro-static-pDx0l"');
198+
expect(js({}, overrides)).toMatchInlineSnapshot('" Nk12 gE12 -macro-dynamic-11y5vdc"');
199199
});
200200

201201
it('should support runtime conditions', () => {
@@ -249,9 +249,9 @@ describe('style-macro', () => {
249249
"
250250
`);
251251

252-
expect(js({})).toMatchInlineSnapshot(`" gH12 pt12 -macro-dynamic-179ovcu"`);
253-
expect(js({ isHovered: true })).toMatchInlineSnapshot(`" gF12 po12 -macro-dynamic-1i83kjb"`);
254-
expect(js({ isPressed: true })).toMatchInlineSnapshot(`" gE12 pm12 -macro-dynamic-1npaxjo"`);
252+
expect(js({})).toMatchInlineSnapshot('" gH12 pt12 -macro-dynamic-179ovcu"');
253+
expect(js({isHovered: true})).toMatchInlineSnapshot('" gF12 po12 -macro-dynamic-1i83kjb"');
254+
expect(js({isPressed: true})).toMatchInlineSnapshot('" gE12 pm12 -macro-dynamic-1npaxjo"');
255255
});
256256

257257
it('should support nested runtime conditions', () => {
@@ -292,10 +292,10 @@ describe('style-macro', () => {
292292
293293
"
294294
`);
295-
expect(js({})).toMatchInlineSnapshot(`" gH12 -macro-dynamic-nl2p5j"`);
296-
expect(js({ isHovered: true })).toMatchInlineSnapshot(`" gF12 -macro-dynamic-nl2nh1"`);
297-
expect(js({ isSelected: true })).toMatchInlineSnapshot(`" g_h12 -macro-dynamic-1w0viba"`);
298-
expect(js({ isSelected: true, isHovered: true })).toMatchInlineSnapshot(`" g312 -macro-dynamic-nl27ia"`);
295+
expect(js({})).toMatchInlineSnapshot('" gH12 -macro-dynamic-nl2p5j"');
296+
expect(js({isHovered: true})).toMatchInlineSnapshot('" gF12 -macro-dynamic-nl2nh1"');
297+
expect(js({isSelected: true})).toMatchInlineSnapshot('" g_h12 -macro-dynamic-1w0viba"');
298+
expect(js({isSelected: true, isHovered: true})).toMatchInlineSnapshot('" g312 -macro-dynamic-nl27ia"');
299299
});
300300

301301
it('should support variant runtime conditions', () => {
@@ -309,9 +309,9 @@ describe('style-macro', () => {
309309
}
310310
});
311311

312-
expect(js({ variant: 'accent' })).toMatchInlineSnapshot(`" gY12 -macro-dynamic-nl33fs"`);
313-
expect(js({ variant: 'primary' })).toMatchInlineSnapshot(`" gjQquMe12 -macro-dynamic-enz676"`);
314-
expect(js({ variant: 'secondary' })).toMatchInlineSnapshot(`" gw12 -macro-dynamic-nl3sna"`);
312+
expect(js({variant: 'accent'})).toMatchInlineSnapshot('" gY12 -macro-dynamic-nl33fs"');
313+
expect(js({variant: 'primary'})).toMatchInlineSnapshot('" gjQquMe12 -macro-dynamic-enz676"');
314+
expect(js({variant: 'secondary'})).toMatchInlineSnapshot('" gw12 -macro-dynamic-nl3sna"');
315315
});
316316

317317
it('supports runtime conditions nested inside css conditions', () => {
@@ -345,16 +345,16 @@ describe('style-macro', () => {
345345
"
346346
`);
347347

348-
expect(js({})).toMatchInlineSnapshot(`" plb12 -macro-dynamic-1w7i5ba"`);
349-
expect(js({ isSelected: true })).toMatchInlineSnapshot(`" ple12 -macro-dynamic-1w7i7u1"`);
348+
expect(js({})).toMatchInlineSnapshot('" plb12 -macro-dynamic-1w7i5ba"');
349+
expect(js({isSelected: true})).toMatchInlineSnapshot('" ple12 -macro-dynamic-1w7i7u1"');
350350
});
351351

352352
it('should expand shorthand properties to longhands', () => {
353353
let {js, css} = testStyle({
354354
padding: 24
355355
});
356356

357-
expect(js).toMatchInlineSnapshot(`" Th12 Qh12 Sh12 Rh12 -macro-static-V268ld"`);
357+
expect(js).toMatchInlineSnapshot('" Th12 Qh12 Sh12 Rh12 -macro-static-V268ld"');
358358
expect(css).toMatchInlineSnapshot(`
359359
"@layer _.a;
360360

0 commit comments

Comments
 (0)