mirror of https://github.com/sveltejs/svelte
failing test for #2015
parent
70ddabde7f
commit
55295a0e33
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
html: `
|
||||
<p>42</p>
|
||||
`,
|
||||
|
||||
async test({ assert, component }) {
|
||||
assert.equal(component.initial_foo, 42);
|
||||
}
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import { writable } from 'svelte/store';
|
||||
let foo = writable(42);
|
||||
export let initial_foo = $foo;
|
||||
</script>
|
||||
|
||||
<p>{initial_foo}</p>
|
Loading…
Reference in new issue