Add test for applying hover class with !important
This commit is contained in:
parent
0174bb7b3e
commit
5974f24eda
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue