mirror of https://github.com/sveltejs/svelte
fix blocks inside <svelte:head> - closes #1774
parent
c0ba6fb4ef
commit
337b62be6f
@ -0,0 +1,12 @@
|
|||||||
|
export default {
|
||||||
|
data: {
|
||||||
|
condition: false
|
||||||
|
},
|
||||||
|
|
||||||
|
test(assert, component, target, window) {
|
||||||
|
assert.equal(window.document.title, '');
|
||||||
|
|
||||||
|
component.set({ condition: true });
|
||||||
|
assert.equal(window.document.title, 'woo!!!');
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,5 @@
|
|||||||
|
<svelte:head>
|
||||||
|
{#if condition}
|
||||||
|
<title>woo!!!</title>
|
||||||
|
{/if}
|
||||||
|
</svelte:head>
|
Loading…
Reference in new issue