mirror of https://github.com/sveltejs/svelte
parent
8cc12b73e1
commit
66fa88b0cb
@ -1,12 +0,0 @@
|
||||
export default {
|
||||
skip_if_ssr: true,
|
||||
html: `<p>from this.options</p>`,
|
||||
|
||||
options: {
|
||||
text: 'from this.options'
|
||||
},
|
||||
|
||||
test(assert, component) {
|
||||
assert.equal(component.options.text, 'from this.options');
|
||||
}
|
||||
};
|
@ -1,11 +0,0 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
export let text;
|
||||
|
||||
onMount(() => {
|
||||
text = this.options.text;
|
||||
});
|
||||
</script>
|
||||
|
||||
<p>{text}</p>
|
Loading…
Reference in new issue