From a73b700f9eb01e5483d4d81118b6d80c9479e6e7 Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Thu, 31 Oct 2024 23:53:00 +0100 Subject: [PATCH] test: for current pure logic (#74) --- test/index.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/index.test.js b/test/index.test.js index c1bab02..f7d0e81 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -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; } }",