You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check("it should extract an import within a :local",":local(.exportName) { extends: importName from \"path/library.css\"; other: rule; }","\n:import(\"path/library.css\") {\n importName: __tmp_importName_rand0ml0l0l; }\n:local(.exportName) { extends: __tmp_importName_rand0ml0l0l; other: rule; }",["rand0ml0l0l"]);
29
+
30
+
check("it should not care if single-quotes are used",":local(.exportName) { extends: importName from 'path/library.css'; other: rule; }","\n:import(\"path/library.css\") {\n importName: __tmp_importName_rand0ml0l0l; }\n:local(.exportName) { extends: __tmp_importName_rand0ml0l0l; other: rule; }",["rand0ml0l0l"]);
31
+
32
+
check("should import multiple classes on a single line",":local(.exportName) { extends: importName secondImport from 'path/library.css'; other: rule; }","\n:import(\"path/library.css\") {\n importName: __tmp_importName_rand0ml0l0l;\n secondImport: __tmp_secondImport_rand0ml1l1l; }\n:local(.exportName) { extends: __tmp_importName_rand0ml0l0l __tmp_secondImport_rand0ml1l1l; other: rule; }",["rand0ml0l0l","rand0ml1l1l"]);
33
+
34
+
check("should consolidate imports by file for multiple files and multiple classes",
35
+
36
+
/* INPUT */
37
+
"\n:local(.exportName) {\n extends: importName secondImport from 'path/library.css';\n other: rule;\n}\n:local(.otherExport) {\n extends: thirdImport from 'path/library.css';\n extends: otherLibImport from 'path/other-lib.css';\n}",
0 commit comments