Skip to content

Commit e1c20e7

Browse files
committed
added import var test case
1 parent 927420e commit e1c20e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/localTest.js

+12
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,16 @@ describe("local", function() {
131131
], {
132132
"-a0-34a___f": "_1YJOcrkc6cyZmBAAvyPFOn"
133133
}, "?module");
134+
testLocal("imported values in decl", ".className { color: IMPORTED_NAME; }\n" +
135+
":import(\"./vars.css\") { IMPORTED_NAME: primary-color; }", [
136+
[1, "._className { color: red; }", ""]
137+
], {
138+
"className": "_className"
139+
}, "?module&localIdentName=_[local]", {
140+
"./vars.css": {
141+
locals: {
142+
"primary-color": "red"
143+
}
144+
}
145+
});
134146
});

0 commit comments

Comments
 (0)