mirror of https://github.com/sveltejs/svelte
commit
ce109f0eb3
@ -0,0 +1,12 @@
|
|||||||
|
export default {
|
||||||
|
'skip-ssr': true,
|
||||||
|
html: `<p>from this.options</p>`,
|
||||||
|
|
||||||
|
options: {
|
||||||
|
text: 'from this.options'
|
||||||
|
},
|
||||||
|
|
||||||
|
test(assert, component) {
|
||||||
|
assert.equal(component.options.text, 'from this.options');
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,11 @@
|
|||||||
|
<p>{{text}}</p>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
oncreate() {
|
||||||
|
this.set({
|
||||||
|
text: this.options.text
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
@ -1,8 +0,0 @@
|
|||||||
export default {
|
|
||||||
html: '<h1>Just some static HTML</h1>',
|
|
||||||
|
|
||||||
test ( assert, component, target, window ) {
|
|
||||||
const newComp = new window.SvelteComponent();
|
|
||||||
assert.equal(newComp instanceof window.SvelteComponent, true);
|
|
||||||
}
|
|
||||||
};
|
|
@ -1 +0,0 @@
|
|||||||
<h1>Just some static HTML</h1>
|
|
Loading…
Reference in new issue