Skip to content

Commit 2b5a65d

Browse files
committed
updated test cases to use the new stuff
1 parent 1d8e608 commit 2b5a65d

File tree

8 files changed

+25
-21
lines changed

8 files changed

+25
-21
lines changed

test/test-cases/constants/breakpoints.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/test-cases/constants/expected.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@value small (max-width: 599px);
2+
@value medium (min-width: 600px) and (max-width: 959px);
3+
@value large (min-width: 960px);

test/test-cases/constants/colors.css renamed to test/test-cases/values/colors.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@define primary: #f01;
2-
@define secondary: #2f2;
1+
@value primary: #f01;
2+
@value secondary: #2f2;
33

44
.text-primary {
55
color: primary;
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
._constants_borders__dashed {
1+
._values_borders__dashed {
22
border: 4px dashed;
33
}
4-
._constants_colors__text-primary {
4+
._values_colors__text-primary {
55
color: #f01;
66
}
7-
._constants_colors__bg-primary {
7+
._values_colors__bg-primary {
88
background-color: #f01;
99
}
1010

11-
._constants_colors__text-secondary {
11+
._values_colors__text-secondary {
1212
color: #2f2;
1313
}
14-
._constants_colors__bg-secondary {
14+
._values_colors__bg-secondary {
1515
background-color: #2f2;
1616
}
1717

1818
/* Imports without a "from" are just passed through */
1919
@import url('./old-skool.css');
2020

21-
._constants_source__foo {
21+
._values_source__foo {
2222
box-shadow: 0 0 10px #f01;
2323
border-color: #2f2;
2424
}
2525

2626
@media (max-width: 599px) {
27-
._constants_source__foo {
27+
._values_source__foo {
2828
background: white;
2929
}
3030
}
3131
@media (min-width: 600px) and (max-width: 959px) {
32-
._constants_source__foo {
32+
._values_source__foo {
3333
background: peru;
3434
}
3535
}

test/test-cases/values/expected.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"borders": "\"./borders.css\"",
3+
"breakpoints": "\"./breakpoints.css\"",
4+
"small": "(max-width: 599px)",
5+
"medium": "(min-width: 600px) and (max-width: 959px)",
6+
"secondary": "#2f2",
7+
"blue": "#f01",
8+
"foo": "_values_source__foo _values_borders__dashed _values_colors__text-secondary"
9+
}

test/test-cases/constants/source.css renamed to test/test-cases/values/source.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@define borders: "./borders.css", breakpoints: "./breakpoints.css";
2-
@import-define small, medium from breakpoints;
3-
@import secondary, primary as blue from "./colors.css";
1+
@value borders: "./borders.css", breakpoints: "./breakpoints.css";
2+
@value small, medium from breakpoints;
3+
@value secondary, primary as blue from "./colors.css";
44

55
/* Imports without a "from" are just passed through */
66
@import url('./old-skool.css');

0 commit comments

Comments
 (0)