add session tests

This commit is contained in:
Richard Harris
2019-02-02 15:42:35 -05:00
parent 7fefc59929
commit 11d3da3aed
12 changed files with 46 additions and 14 deletions

View 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>