failing test for #1621

pull/1630/head
Rich Harris 7 years ago
parent 6012c965ac
commit 09db82b7bd

@ -0,0 +1,17 @@
export default {
html: `
<p>Foo</p>
`,
test(assert, component, target) {
const { Bar } = component.get();
component.set({
x: Bar
});
assert.htmlEqual(target.innerHTML, `
<p>Bar</p>
`);
}
};

@ -0,0 +1,18 @@
{#if x}
<svelte:component this={x}/>
{/if}
<script>
import Foo from './Foo.html';
import Bar from './Bar.html';
export default {
data() {
return {
x: Foo,
Foo,
Bar
};
}
};
</script>
Loading…
Cancel
Save