Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit 9774424

Browse files
committed
Add more tests (just in case)
1 parent 4ef3327 commit 9774424

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ tape("postcss-selector-not", t => {
4444
"should transform mutltiples :not()"
4545
)
4646

47+
t.equal(
48+
transform("tag :not(tag2, tag3) :not(tag4, tag5), test {}"),
49+
"tag :not(tag2):not(tag3) :not(tag4):not(tag5), test {}",
50+
"should transform mutltiples :not() with stuff after"
51+
)
52+
4753
t.equal(
4854
transform("tag :not(tag2 :not(tag4, tag5), tag3) {}"),
4955
"tag :not(tag2 :not(tag4):not(tag5)):not(tag3) {}",
@@ -65,5 +71,11 @@ tape("postcss-selector-not", t => {
6571
"should works with lots of whitespace"
6672
)
6773

74+
t.equal(
75+
transform(`.foo:not(:hover, :focus)::before {}`),
76+
`.foo:not(:hover):not(:focus)::before {}`,
77+
"should work with something after :not()"
78+
)
79+
6880
t.end()
6981
})

0 commit comments

Comments
 (0)