Add test for applying hover class with !important

This commit is contained in:
Adam Wathan 2020-08-28 08:17:18 -04:00
parent 0174bb7b3e
commit 5974f24eda

View File

@ -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)