Skip to content

Commit 4b92fc2

Browse files
committed
Fixed test.
1 parent 637bead commit 4b92fc2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/errors.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ test('Refined errors on leaf node', async () => {
6868

6969
assert(form.valid == false);
7070
expect(form.errors).toStrictEqual({
71-
flavours: ["Can't order more flavours than scoops!"]
71+
flavours: { _errors: ["Can't order more flavours than scoops!"] }
7272
});
7373
});

src/routes/tainted/programmatically/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</label>
4747
{/each}
4848

49-
{#if $errors.flavours}<p>{$errors.flavours}</p>{/if}
49+
{#if $errors.flavours?._errors}<p>{$errors.flavours._errors}</p>{/if}
5050

5151
{#if $message}<p>{$message}</p>{/if}
5252
<button>Submit</button>

0 commit comments

Comments
 (0)