From 378ca4f17e8bc6e422054a74d25c7010868ddedc Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Thu, 10 Feb 2022 17:43:57 +0100 Subject: [PATCH] add sort test for utilities with the important modifier e.g.: `!p-4` --- tests/sortClassList.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/sortClassList.test.js b/tests/sortClassList.test.js index f4e0419516b3..a88f3351e5ce 100644 --- a/tests/sortClassList.test.js +++ b/tests/sortClassList.test.js @@ -11,6 +11,10 @@ it.each([ // Utilities with variants ['px-3 focus:hover:p-3 hover:p-1 py-3', 'px-3 py-3 hover:p-1 focus:hover:p-3'], + // Utitlies with important + ['px-3 !py-4', 'px-3 !py-4'], + ['!py-4 px-3', '!py-4 px-3'], + // Components with variants ['hover:container container', 'container hover:container'], @@ -45,6 +49,10 @@ it.each([ 'tw-px-3 tw-py-3 hover:tw-p-1 focus:hover:tw-p-3', ], + // Utitlies with important + ['tw-px-3 !tw-py-4', 'tw-px-3 !tw-py-4'], + ['!tw-py-4 tw-px-3', '!tw-py-4 tw-px-3'], + // Components with variants ['hover:tw-container tw-container', 'tw-container hover:tw-container'],