mirror of https://github.com/sveltejs/svelte
parent
5f59c13d20
commit
4cd1d597fd
@ -0,0 +1,13 @@
|
|||||||
|
import { writable } from '../../../../store';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<p>undefined</p>
|
||||||
|
`,
|
||||||
|
async test({ assert, component, target }) {
|
||||||
|
component.store = writable('foo');
|
||||||
|
assert.htmlEqual(target.innerHTML, `
|
||||||
|
<p>foo</p>
|
||||||
|
`);
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
export let store;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>{$store}</p>
|
Loading…
Reference in new issue