@@ -16,15 +16,15 @@ describe('constants', () => {
16
16
} )
17
17
18
18
it ( 'should export a constant' , ( ) => {
19
- test ( '@define red blue;' , ':export {\n red: blue\n}' )
19
+ test ( '@value red blue;' , ':export {\n red: blue\n}' )
20
20
} )
21
21
22
22
it ( 'should export a more complex constant' , ( ) => {
23
- test ( '@define small (max-width: 599px);' , ':export {\n small: (max-width: 599px)\n}' )
23
+ test ( '@value small (max-width: 599px);' , ':export {\n small: (max-width: 599px)\n}' )
24
24
} )
25
25
26
26
it ( 'should replace constants within the file' , ( ) => {
27
- test ( '@define blue red; .foo { color: blue; }' , ':export {\n blue: red;\n}\n.foo { color: red; }' )
27
+ test ( '@value blue red; .foo { color: blue; }' , ':export {\n blue: red;\n}\n.foo { color: red; }' )
28
28
} )
29
29
30
30
it ( 'should import a simple constant' , ( ) => {
@@ -54,14 +54,14 @@ describe('constants', () => {
54
54
55
55
it ( 'should import from a definition' , ( ) => {
56
56
test (
57
- '@define colors: "./colors.css"; @import red from colors;' ,
57
+ '@value colors: "./colors.css"; @import red from colors;' ,
58
58
':export {\n colors: "./colors.css"\n}\n' +
59
59
':import("./colors.css") {\n i__const_red_5: red\n}'
60
60
)
61
61
} )
62
62
63
- it ( 'should import a simple constant with import-define ' , ( ) => {
64
- test ( '@import-define red from "./colors.css";' , ':import("./colors.css") {\n i__const_red_6: red\n}' )
63
+ it ( 'should import a simple constant with import-value ' , ( ) => {
64
+ test ( '@import-value red from "./colors.css";' , ':import("./colors.css") {\n i__const_red_6: red\n}' )
65
65
} )
66
66
} )
67
67
0 commit comments