Skip to content

Commit

Permalink
test(core): update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 3, 2025
1 parent 14bfa65 commit 52f2837
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/test/params.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,11 @@ test("color", () => {

expect(validate(spec, "#aabbcc")).toBeTrue();
expect(validate(spec, "aabbcc")).toBeTrue();
expect(validate(spec, "#aabbccdd")).toBeFalse();
expect(validate(spec, "#aabbccdd")).toBeTrue();

expect(coerce!(spec, "#aabbcc")).toBe("#aabbcc");
expect(coerce!(spec, "aabbcc")).toBe("#aabbcc");
expect(coerce!(spec, "#aabbccdd")).toBe("#aabbcc");

fuzz(spec, color);
});
Expand Down

0 comments on commit 52f2837

Please sign in to comment.