mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Add test for applying hover class with !important
This commit is contained in:
parent
0174bb7b3e
commit
5974f24eda
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user