failing test for #3354

pull/3355/head
Richard Harris 5 years ago
parent 5266b53739
commit eda4f90cde

@ -0,0 +1,9 @@
<script>
import B from './B.svelte';
export let x;
</script>
<B {x} let:reflected>
<span>{reflected}</span>
<slot {reflected} />
</B>

@ -0,0 +1,5 @@
<script>
export let x;
</script>
<slot reflected={x}/>

@ -0,0 +1,15 @@
export default {
html: `
<span>1</span>
<span>1</span>
`,
async test({ assert, target, component }) {
component.x = 2;
assert.htmlEqual(target.innerHTML, `
<span>2</span>
<span>2</span>
`);
}
};

@ -0,0 +1,8 @@
<script>
import A from './A.svelte';
export let x = 1;
</script>
<A {x} let:reflected>
<span>{reflected}</span>
</A>
Loading…
Cancel
Save