From 5974f24edab51b89cb3ad43b74ccb61dbe2ea1be Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Fri, 28 Aug 2020 08:17:18 -0400 Subject: [PATCH] Add test for applying hover class with !important --- __tests__/applyComplexClasses.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/__tests__/applyComplexClasses.test.js b/__tests__/applyComplexClasses.test.js index cfa3f46fc..9112d2c6d 100644 --- a/__tests__/applyComplexClasses.test.js +++ b/__tests__/applyComplexClasses.test.js @@ -89,12 +89,15 @@ test('selectors with invalid characters do not need to be manually escaped', () test('it removes important from applied classes by default', () => { const input = ` .a { color: red !important; } + .a:hover { color: blue !important; } .b { @apply a; } ` const expected = ` .a { color: red !important; } + .a:hover { color: blue !important; } .b { color: red; } + .b:hover { color: blue; } ` expect.assertions(2)