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> <script>
export default { export default {
oncreate() { oncreate() {
this.set({ this.set({
text: 'Changed in Nested' text: 'correct'
}); });
} }
}; };

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

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

Loading…
Cancel
Save