Skip to content

Commit f8fef2d

Browse files
committed
using an example of double dash to prefix a value name [closes #4]
1 parent 97a952f commit f8fef2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,13 @@ describe('constants', () => {
9494
':export {\n a: i__const_a_7;\n b: i__const_b_8\n}'
9595
)
9696
})
97+
98+
it('should allow custom-property-style names', () => {
99+
test(
100+
'@value --red from "./colors.css"; .foo { color: --red; }',
101+
':import("./colors.css") {\n i__const___red_9: --red;\n}\n' +
102+
':export {\n --red: i__const___red_9;\n}\n' +
103+
'.foo { color: i__const___red_9; }')
104+
})
97105
})
98106

0 commit comments

Comments
 (0)