simplify test to match original

pull/1380/head
Rich Harris 8 years ago
parent 2124aaf5be
commit d9fcc62df7

@ -1,10 +1,8 @@
<p>Text in Nested.html: {text}</p>
<script>
export default {
oncreate() {
this.set({
text: 'Changed in Nested'
text: 'correct'
});
}
};

@ -2,7 +2,6 @@ export default {
'skip-ssr': true,
html: `
<p>text in App.html: Changed in Nested</p>
<p>Text in Nested.html: Changed in Nested</p>
<p>Text: correct</p>
`
};

@ -1,17 +1,18 @@
<p>text in App.html: {text}</p>
<svelte:component this={cmp} bind:text=text />
<p>Text: {text}</p>
<svelte:component this={Child} bind:text=text />
<script>
import Nested from './Nested.html';
export default {
data: () => ({
text: 'initial'
text: 'incorrect',
Child: null
}),
oncreate() {
this.set({
cmp: Nested
Child: Nested
});
}
};

Loading…
Cancel
Save