We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent d1d3800 commit 11ae22dCopy full SHA for 11ae22d
test/test.js
@@ -54,6 +54,15 @@ test('it without variables', t => {
54
t.is(processing(value), expected);
55
});
56
57
+test('chould change from options variables', t => {
58
+ const expected = '@if green { .text-green { color: var(--green) }}';
59
+ const value = '@if var(--green) { .text-green { color: var(--green) }}';
60
+ const variables = {
61
+ '--green': 'green'
62
+ };
63
+ t.is(processing(value, {variables: variables}), expected);
64
+});
65
+
66
test('should change for @custom-media', t => {
67
const expected = ':root{ --breakpoint-xs: 29.25em } @custom-media --viewport-xs (width > 29.25em)';
68
const value = ':root{ --breakpoint-xs: 29.25em } @custom-media --viewport-xs (width > var(--breakpoint-xs))';
0 commit comments