mirror of https://github.com/sveltejs/svelte
parent
334323fb8b
commit
6665a52bad
@ -0,0 +1,12 @@
|
|||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
foo: 42
|
||||||
|
},
|
||||||
|
|
||||||
|
html: '<p>42</p>',
|
||||||
|
|
||||||
|
test({ assert, component, target }) {
|
||||||
|
component.foo = 43;
|
||||||
|
assert.htmlEqual(target.innerHTML, '<p>43</p>');
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
export let foo;
|
||||||
|
|
||||||
|
const show = () => true;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#if show()}
|
||||||
|
<p>{foo}</p>
|
||||||
|
{/if}
|
Loading…
Reference in new issue