mirror of
https://github.com/bitwarden/browser
synced 2026-02-28 10:33:31 +00:00
[CL-707] Migrate CL codebase to signals (#15340)
This commit is contained in:
@@ -37,15 +37,15 @@ describe("Select Component", () => {
|
||||
|
||||
describe("initial state", () => {
|
||||
it("selected option should update when items input changes", () => {
|
||||
expect(select.selectedOption?.value).toBeUndefined();
|
||||
expect(select.selectedOption()?.value).toBeUndefined();
|
||||
|
||||
select.items = [
|
||||
select.items.set([
|
||||
{ label: "Apple", value: "apple" },
|
||||
{ label: "Pear", value: "pear" },
|
||||
{ label: "Banana", value: "banana" },
|
||||
];
|
||||
]);
|
||||
|
||||
expect(select.selectedOption?.value).toBe("apple");
|
||||
expect(select.selectedOption()?.value).toBe("apple");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user