Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a73b700

Browse files
test: for current pure logic (#74)
1 parent f1c05a5 commit a73b700

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎test/index.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,12 @@ const tests = [
858858
options: { mode: "pure" },
859859
expected: ":local(.foo) { &:hover { a_value: some-value; } }",
860860
},
861+
{
862+
name: "consider global inside local as pure",
863+
input: ".foo button { a_value: some-value; }",
864+
options: { mode: "pure" },
865+
expected: ":local(.foo) button { a_value: some-value; }",
866+
},
861867
{
862868
name: "consider selector & statements as pure",
863869
input: ".foo { html &:hover { a_value: some-value; } }",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /