Skip to content

Commit c92596f

Browse files
Fix typo in size-* tests (#12289)
* Update size.test.js * Fix test --------- Co-authored-by: Jordan Pittman <[email protected]>
1 parent e4b32a7 commit c92596f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

tests/plugins/__snapshots__/size.test.js.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,16 @@ exports[`should test the 'size' plugin 1`] = `
302302
height: 24rem;
303303
}
304304
305+
.size-\\[12px\\] {
306+
width: 12px;
307+
height: 12px;
308+
}
309+
310+
.size-\\[var\\(--my-value\\)\\] {
311+
width: var(--my-value);
312+
height: var(--my-value);
313+
}
314+
305315
.size-auto {
306316
width: auto;
307317
height: auto;

tests/plugins/size.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { quickPluginTest } from '../util/run'
33
quickPluginTest('size', {
44
safelist: [
55
// Arbitrary values
6-
's-[12px]',
7-
's-[var(--my-value)]',
6+
'size-[12px]',
7+
'size-[var(--my-value)]',
88
],
99
}).toMatchSnapshot()

0 commit comments

Comments
 (0)