Skip to content

Commit 7eba8a9

Browse files
committed
add test for current pure logic
1 parent 5eeb305 commit 7eba8a9

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
@@ -850,6 +850,12 @@ const tests = [
850850
options: { mode: "pure" },
851851
expected: ":local(.foo) { &:hover { a_value: some-value; } }",
852852
},
853+
{
854+
name: "consider global inside local as pure",
855+
input: ".foo button { a_value: some-value; }",
856+
options: { mode: "pure" },
857+
expected: ":local(.foo) button { a_value: some-value; }",
858+
},
853859
{
854860
name: "consider selector & statements as pure",
855861
input: ".foo { html &:hover { a_value: some-value; } }",

0 commit comments

Comments
 (0)