mirror of https://github.com/sveltejs/svelte
parent
1d2197a589
commit
951cbcd585
@ -0,0 +1,12 @@
|
|||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
foo: 'A Title'
|
||||||
|
},
|
||||||
|
|
||||||
|
test({ assert, component, target, window }) {
|
||||||
|
assert.equal(window.document.title, 'A Title');
|
||||||
|
|
||||||
|
component.foo = 'Also A Title';
|
||||||
|
assert.equal(window.document.title, 'Also A Title');
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,3 @@
|
|||||||
|
<svelte:head>
|
||||||
|
<title>{foo}</title>
|
||||||
|
</svelte:head>
|
Loading…
Reference in new issue