mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Run npm run lint
This commit is contained in:
parent
4295e9740c
commit
0dbde8b5d9
2 changed files with 4 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
|||
<SelectItem value={0} text="Zero" />
|
||||
<SelectItem value={1} text="One" />
|
||||
</Select>
|
||||
|
||||
<Select labelText="Undefined text">
|
||||
<SelectItem value={2} />
|
||||
<SelectItem value={0} text="Zero" />
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue