@@ -16,15 +16,15 @@ describe('constants', () => {
1616 } )
1717
1818 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}' )
2020 } )
2121
2222 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}' )
2424 } )
2525
2626 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; }' )
2828 } )
2929
3030 it ( 'should import a simple constant' , ( ) => {
@@ -54,14 +54,14 @@ describe('constants', () => {
5454
5555 it ( 'should import from a definition' , ( ) => {
5656 test (
57- '@define colors: "./colors.css"; @import red from colors;' ,
57+ '@value colors: "./colors.css"; @import red from colors;' ,
5858 ':export {\n colors: "./colors.css"\n}\n' +
5959 ':import("./colors.css") {\n i__const_red_5: red\n}'
6060 )
6161 } )
6262
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}' )
6565 } )
6666} )
6767
0 commit comments