Skip to content

Commit 75898a2

Browse files
committed
Fix tests
1 parent 1b3353a commit 75898a2

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

test/runtime/scripts/colorDecisions/generateGetColorDecisionsTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ it("Generates the correct TS code for breakpoints", () => {
1717
--background-contrast-overlap-grey: var(--grey-950-150);
1818
}
1919
20-
:root:where([data-fr-theme=dark]) {
20+
:root[data-fr-theme=dark] {
2121
--grey-1000-50-hover: #000000;
2222
--grey-1000-50: #000000;
2323
--orange-terre-battue-850-200: #000000;

test/runtime/scripts/colorDecisions/parseColorDecision.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ it("Color decisions to be successfully parsed", () => {
1818
--background-contrast-overlap-grey: var(--grey-950-150);
1919
}
2020
21-
:root:where([data-fr-theme=dark]) {
21+
:root[data-fr-theme=dark] {
2222
--grey-1000-50-hover: #000000;
2323
--grey-1000-50: #000000;
2424
--orange-terre-battue-850-200: #000000;

test/runtime/scripts/colorDecisions/parseColorDecisionName.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe("Color decision css variable correctly parsed", () => {
2121
2222
}
2323
24-
:root:where([data-fr-theme=dark]) {
24+
:root[data-fr-theme=dark] {
2525
--grey-1000-50-hover: #000000;
2626
--grey-1000-50: #000000;
2727
--orange-terre-battue-850-200: #000000;

test/runtime/scripts/colorOptions/generateGetColorOptionsTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ it("Generate the correct TS code for colors options", () => {
2727
--background-default-grey: var(--grey-1000-50);
2828
--background-default-grey-hover: var(--grey-1000-50-hover);
2929
}
30-
:root:where([data-fr-theme=dark]) {
30+
:root[data-fr-theme=dark] {
3131
--name1-name2-111-222: #100000;
3232
--name1-name2-111-222-hover: #200000;
3333
--name1-name2-sun-111-222: #300000;

test/runtime/scripts/colorOptions/parseColorOptions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ it("Successfully parse color options", () => {
2828
--background-default-grey: var(--grey-1000-50);
2929
--background-default-grey-hover: var(--grey-1000-50-hover);
3030
}
31-
:root:where([data-fr-theme=dark]) {
31+
:root[data-fr-theme=dark] {
3232
--name1-name2-111-222: #100000;
3333
--name1-name2-111-222-hover: #200000;
3434
--name1-name2-sun-111-222: #300000;

test/runtime/scripts/cssVariable.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const rawCssCode = `
1515
--my-var-4: #ffffff;
1616
}
1717
18-
:root:where([data-fr-theme=dark]) {
18+
:root[data-fr-theme=dark] {
1919
--my-var-2: #000000;
2020
}
2121
@@ -24,7 +24,7 @@ const rawCssCode = `
2424
2525
@media (min-width: 48em) {
2626
27-
:root:where([data-fr-theme=dark]) {
27+
:root[data-fr-theme=dark] {
2828
--my-var-4: #000000;
2929
}
3030

0 commit comments

Comments
 (0)