Skip to content

Commit

Permalink
Fix typo in size-* tests (#12289)
Browse files Browse the repository at this point in the history
* Update size.test.js

* Fix test

---------

Co-authored-by: Jordan Pittman <[email protected]>
  • Loading branch information
AhmedBaset and thecrypticace authored Oct 25, 2023
1 parent e4b32a7 commit c92596f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions tests/plugins/__snapshots__/size.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,16 @@ exports[`should test the 'size' plugin 1`] = `
height: 24rem;
}
.size-\\[12px\\] {
width: 12px;
height: 12px;
}
.size-\\[var\\(--my-value\\)\\] {
width: var(--my-value);
height: var(--my-value);
}
.size-auto {
width: auto;
height: auto;
Expand Down
4 changes: 2 additions & 2 deletions tests/plugins/size.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { quickPluginTest } from '../util/run'
quickPluginTest('size', {
safelist: [
// Arbitrary values
's-[12px]',
's-[var(--my-value)]',
'size-[12px]',
'size-[var(--my-value)]',
],
}).toMatchSnapshot()

0 comments on commit c92596f

Please sign in to comment.