Skip to content

Commit 378ca4f

Browse files
committed
add sort test for utilities with the important modifier e.g.: !p-4
1 parent 19a2340 commit 378ca4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/sortClassList.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ it.each([
1111
// Utilities with variants
1212
['px-3 focus:hover:p-3 hover:p-1 py-3', 'px-3 py-3 hover:p-1 focus:hover:p-3'],
1313

14+
// Utitlies with important
15+
['px-3 !py-4', 'px-3 !py-4'],
16+
['!py-4 px-3', '!py-4 px-3'],
17+
1418
// Components with variants
1519
['hover:container container', 'container hover:container'],
1620

@@ -45,6 +49,10 @@ it.each([
4549
'tw-px-3 tw-py-3 hover:tw-p-1 focus:hover:tw-p-3',
4650
],
4751

52+
// Utitlies with important
53+
['tw-px-3 !tw-py-4', 'tw-px-3 !tw-py-4'],
54+
['!tw-py-4 tw-px-3', '!tw-py-4 tw-px-3'],
55+
4856
// Components with variants
4957
['hover:tw-container tw-container', 'tw-container hover:tw-container'],
5058

0 commit comments

Comments
 (0)