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
Copy file name to clipboardExpand all lines: test/index.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -28,20 +28,20 @@ describe('constants', () => {
28
28
})
29
29
30
30
it('should import a simple constant',()=>{
31
-
test('@import red from "./colors.css";',':import("./colors.css") {\n i__const_red_0: red\n}')
31
+
test('@value red from "./colors.css";',':import("./colors.css") {\n i__const_red_0: red\n}')
32
32
})
33
33
34
34
it('should import a simple constant and replace usages',()=>{
35
-
test('@import red from "./colors.css"; .foo { color: red; }',':import("./colors.css") {\n i__const_red_1: red;\n}\n.foo { color: i__const_red_1; }')
35
+
test('@value red from "./colors.css"; .foo { color: red; }',':import("./colors.css") {\n i__const_red_1: red;\n}\n.foo { color: i__const_red_1; }')
36
36
})
37
37
38
38
it('should import and alias a constant and replace usages',()=>{
39
-
test('@import blue as red from "./colors.css"; .foo { color: red; }',':import("./colors.css") {\n i__const_red_2: blue;\n}\n.foo { color: i__const_red_2; }')
39
+
test('@value blue as red from "./colors.css"; .foo { color: red; }',':import("./colors.css") {\n i__const_red_2: blue;\n}\n.foo { color: i__const_red_2; }')
40
40
})
41
41
42
42
it('should import multiple from a single file',()=>{
43
43
test(
44
-
`@import blue, red from "./colors.css";
44
+
`@value blue, red from "./colors.css";
45
45
.foo { color: red; }
46
46
.bar { color: blue }`,
47
47
`:import("./colors.css") {
@@ -54,14 +54,14 @@ describe('constants', () => {
54
54
55
55
it('should import from a definition',()=>{
56
56
test(
57
-
'@value colors: "./colors.css"; @import red from colors;',
57
+
'@value colors: "./colors.css"; @value red from colors;',
0 commit comments