Skip to content

Commit 7ed95d9

Browse files
Copilotsawka
andcommitted
Refine color validator test typing
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
1 parent c46da47 commit 7ed95d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/util/color-validator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("validateCssColor", () => {
3636
});
3737

3838
it("throws for invalid CSS colors", () => {
39-
expect(() => validateCssColor(":not-a-color:" as any)).toThrow("Invalid CSS color");
39+
expect(() => validateCssColor(":not-a-color:")).toThrow("Invalid CSS color");
4040
expect(() => validateCssColor("#12")).toThrow("Invalid CSS color");
4141
expect(() => validateCssColor("rgb(255, 0)")).toThrow("Invalid CSS color");
4242
});

0 commit comments

Comments
 (0)