Skip to content

Commit 125f6dc

Browse files
committed
Fix tests
1 parent d7b9ade commit 125f6dc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ it("Generates the correct TS code for breakpoints", () => {
3535
`;
3636

3737
const expected = `
38-
export function getColorDecisions(
38+
export function getColorDecisions<Format extends "css var" | "hex">(
3939
params: {
40-
colorOptions: ColorOptions;
40+
colorOptions: ColorOptions<Format>;
4141
}
4242
) {
4343

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { it, expect } from "vitest";
2-
import { generateGetColorOptionsTsCode } from "../../../../scripts/build/cssToTs/colorOptions";
2+
import { generateGetColorOptionsHexTsCode } from "../../../../scripts/build/cssToTs/colorOptions";
33

44
it("Generate the correct TS code for colors options", () => {
55
const input = `
@@ -55,7 +55,7 @@ it("Generate the correct TS code for colors options", () => {
5555
`;
5656

5757
const expected = `
58-
export function getColorOptions(
58+
export function getColorOptionsHex(
5959
params: {
6060
isDark: boolean;
6161
}
@@ -112,7 +112,7 @@ export function getColorOptions(
112112
} as const;
113113
}`.replace(/^\n/, "");
114114

115-
const got = generateGetColorOptionsTsCode(input);
115+
const got = generateGetColorOptionsHexTsCode(input);
116116

117117
expect(got).toBe(expected);
118118
});

0 commit comments

Comments
 (0)