From 0a19b9a151819a58c6b3e37f11d97026ccda9fe7 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Thu, 20 Jan 2022 16:51:22 -0800 Subject: [PATCH] test(combo-box): assert id type --- tests/ComboBox.test.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/ComboBox.test.svelte b/tests/ComboBox.test.svelte index 44e575d0..6635317c 100644 --- a/tests/ComboBox.test.svelte +++ b/tests/ComboBox.test.svelte @@ -3,7 +3,7 @@ import type { ComboBoxItem } from "../types/ComboBox/ComboBox.svelte"; const items: ComboBoxItem[] = [ - { id: "0", text: "Slack" }, + { id: 0, text: "Slack" }, { id: "1", text: "Email" }, { id: "2", text: "Fax" }, ]; @@ -20,6 +20,9 @@ titleText="Contact" placeholder="Select contact method" items="{items}" + on:select="{(e) => { + console.log(e.detail.selectedId); + }}" />