test(multi-select): add more unit tests

This commit is contained in:
Eric Liu 2025-05-20 10:17:42 -07:00
commit 0ea3d9351e
2 changed files with 112 additions and 0 deletions

View file

@ -25,6 +25,7 @@
) => item.text;
export let itemToInput: ComponentProps<MultiSelect>["itemToInput"] =
undefined;
export let helperText: ComponentProps<MultiSelect>["helperText"] = "";
</script>
<MultiSelect
@ -46,6 +47,7 @@
{translateWithIdSelection}
{itemToString}
{itemToInput}
{helperText}
on:select={(e) => {
console.log("select", e.detail);
}}