diff --git a/tests/Select/Select.falsy.test.svelte b/tests/Select/Select.falsy.test.svelte index 2c4663f5..a7614f47 100644 --- a/tests/Select/Select.falsy.test.svelte +++ b/tests/Select/Select.falsy.test.svelte @@ -7,6 +7,7 @@ + diff --git a/tests/Select/Select.test.ts b/tests/Select/Select.test.ts index b840ef0f..0805ae6b 100644 --- a/tests/Select/Select.test.ts +++ b/tests/Select/Select.test.ts @@ -244,12 +244,13 @@ describe("Select", () => { render(SelectFalsy); expect(screen.getByLabelText("Falsy text")).toHaveValue("-1"); - expect(screen.getByRole('option', { name: "" })).toBeInTheDocument(); + expect(screen.getByRole("option", { name: "" })).toBeInTheDocument(); }); + it("renders value if `text` is undefined", () => { render(SelectFalsy); expect(screen.getByLabelText("Undefined text")).toHaveValue("2"); - expect(screen.getByRole('option', { name: "2" })).toBeInTheDocument(); + expect(screen.getByRole("option", { name: "2" })).toBeInTheDocument(); }); });