Skip to content

Commit c138c58

Browse files
committed
Set tests completed. Fixes #194.
1 parent 75f95fe commit c138c58

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/routes/tests/issue-194/+page.server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Actions, PageServerLoad } from './$types';
2-
import { message, superValidate } from '$lib/server';
2+
import { superValidate } from '$lib/server';
33
import { schema } from './schema';
44
import { fail } from '@sveltejs/kit';
55

@@ -19,7 +19,5 @@ export const actions = {
1919
console.log('POST', form);
2020

2121
if (!form.valid) return fail(400, { form });
22-
23-
return message(form, 'Posted OK!');
2422
}
2523
} satisfies Actions;

src/routes/tests/issue-194/+page.svelte

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
import { superForm } from '$lib/client';
33
import type { PageData } from './$types';
44
import SuperDebug from '$lib/client/SuperDebug.svelte';
5-
//import { schema } from './schema';
65
76
export let data: PageData;
87
98
const { form, errors, tainted, message, enhance } = superForm(data.form, {
109
dataType: 'json'
11-
//validators: schema
1210
});
1311
</script>
1412

@@ -42,9 +40,5 @@
4240
<style lang="scss">
4341
form {
4442
margin: 2rem 0;
45-
46-
input {
47-
background-color: #dedede;
48-
}
4943
}
5044
</style>

0 commit comments

Comments
 (0)