Skip to content

Commit

Permalink
Update: Test disabling tidySelector option
Browse files Browse the repository at this point in the history
Refs #39

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
  • Loading branch information
leodido committed Feb 7, 2021
1 parent a65c975 commit 0cb1bad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,10 @@ const mediaqueries = new Map()
for (let [descr, input] of mediaqueries.entries()) {
test(`should process ${descr}`, t => arun(t, input))
}

const tidyselectors = new Map()
.set('not optimize selectors', '#shadow::part(a) { color: red; }#shadow::part(a b) { font-weight: bold; }#shadow::part(a b c) { font-size: large; }') // '#shadow::part(a){color:red}#shadow::part(a b){font-weight:700}#shadow::part(a b c){font-size:large}'

for (let [descr, input] of tidyselectors.entries()) {
test(`should ${descr} when tidy selectors is off`, t => arun(t, input, { level: { 1: { tidySelectors: false } } }))
}

0 comments on commit 0cb1bad

Please sign in to comment.