Skip to content

Commit a73b700

Browse files
authored
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

+6
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)