mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 11:35:28 +00:00
add session tests
This commit is contained in:
10
test/apps/session/src/routes/session.html
Normal file
10
test/apps/session/src/routes/session.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<script>
|
||||
import { getSession } from '@sapper/app';
|
||||
const session = getSession();
|
||||
</script>
|
||||
|
||||
<h1>{$session.title}</h1>
|
||||
|
||||
<button on:click="{() => session.set({ title: 'changed' })}">
|
||||
click me
|
||||
</button>
|
||||
Reference in New Issue
Block a user