0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

failing test for #2015

This commit is contained in:
Richard Harris 2019-02-17 16:47:31 -05:00
parent 70ddabde7f
commit 55295a0e33
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,9 @@
export default {
html: `
<p>42</p>
`,
async test({ assert, component }) {
assert.equal(component.initial_foo, 42);
}
};

View File

@ -0,0 +1,7 @@
<script>
import { writable } from 'svelte/store';
let foo = writable(42);
export let initial_foo = $foo;
</script>
<p>{initial_foo}</p>