Skip to content

Commit 8eb08fe

Browse files
committed
Minor updates to test code
1 parent f81c752 commit 8eb08fe

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/lib/components/radio-group/radio-group.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ describe('Rendering', () => {
259259
// Try to click one a few options
260260
await click(document.querySelector('[data-value="slot-prop"]'))
261261

262-
// Make sure that the onChange handler got called
262+
// Make sure that the value changed
263263
expect(get(value)).toEqual("slot-prop");
264264
})
265265

src/lib/test-utils/TestRenderer.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts" context="module">
22
type HandlerType = (event?: CustomEvent) => any;
33
interface ComponentProps {
4-
onChange?: HandlerType;
54
onClose?: HandlerType;
65
onFocus?: HandlerType;
76
onKeydown?: HandlerType;
@@ -34,15 +33,13 @@
3433
export let allProps: TestRendererProps;
3534
3635
let spreadProps = {};
37-
let onChange: HandlerType = () => {};
3836
let onClose: HandlerType = () => {};
3937
let onFocus: HandlerType = () => {};
4038
let onKeydown: HandlerType = () => {};
4139
let onSubmit: HandlerType = () => {};
4240
let onClick: HandlerType = () => {};
4341
if (allProps && typeof allProps !== "string" && isSingleComponent(allProps)) {
4442
({
45-
onChange = onChange,
4643
onClose = onClose,
4744
onFocus = onFocus,
4845
onKeydown = onKeydown,
@@ -61,7 +58,6 @@
6158
<svelte:component
6259
this={allProps[0]}
6360
{...spreadProps}
64-
on:change={onChange}
6561
on:close={onClose}
6662
on:focus={onFocus}
6763
on:keydown={onKeydown}

0 commit comments

Comments
 (0)