Skip to content

Commit 30068a5

Browse files
committed
Tests fixed.
1 parent e39b63d commit 30068a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/routes/nested-validation/TagForm.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,11 @@
5252
}
5353
);
5454
55-
validate(['tags', 0, 'name'], { value: 'p', errors: 'No way' });
56-
5755
// validate tests
5856
onMount(async () => {
5957
if (!$page.url.searchParams.has('test')) return;
6058
59+
validate(['tags', 0, 'name'], { value: 'p', errors: 'Custom error' });
6160
output = [...output, await validate('name')];
6261
6362
output = [
@@ -79,7 +78,6 @@
7978
</script>
8079

8180
<form method="POST" use:enhance>
82-
<SuperDebug data={$tainted} />
8381
{#if $message}<h4>{$message}</h4>{/if}
8482
<input type="hidden" name="id" value={validator} />
8583
<small>{validator} validation</small>

0 commit comments

Comments
 (0)