Skip to content

Commit

Permalink
test: for current pure logic (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon authored Oct 31, 2024
1 parent f1c05a5 commit a73b700
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,12 @@ const tests = [
options: { mode: "pure" },
expected: ":local(.foo) { &:hover { a_value: some-value; } }",
},
{
name: "consider global inside local as pure",
input: ".foo button { a_value: some-value; }",
options: { mode: "pure" },
expected: ":local(.foo) button { a_value: some-value; }",
},
{
name: "consider selector & statements as pure",
input: ".foo { html &:hover { a_value: some-value; } }",
Expand Down

0 comments on commit a73b700

Please sign in to comment.