0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

failing test for #3354

This commit is contained in:
Richard Harris 2019-08-05 08:35:36 -04:00
parent 5266b53739
commit eda4f90cde
4 changed files with 37 additions and 0 deletions

View File

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

View File

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

View File

@ -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>
`);
}
};

View File

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