mirror of https://github.com/sveltejs/svelte
parent
f6bf22bdb5
commit
0b7168c23b
@ -0,0 +1,3 @@
|
||||
<script lang="ts">
|
||||
await 1;
|
||||
</script>
|
@ -0,0 +1,13 @@
|
||||
import { tick } from 'svelte';
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
skip_mode: ['server'],
|
||||
|
||||
ssrHtml: '<p>hello</p>',
|
||||
|
||||
async test({ assert, target }) {
|
||||
await tick();
|
||||
assert.htmlEqual(target.innerHTML, '<p>hello</p>');
|
||||
}
|
||||
});
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import Child from './Child.svelte';
|
||||
</script>
|
||||
|
||||
<Child />
|
||||
|
||||
{#if true}
|
||||
<p>hello</p>
|
||||
{/if}
|
Loading…
Reference in new issue