failing test for #2163

pull/2234/head
Richard Harris 6 years ago
parent d618c238f5
commit 6ecc64f03b

@ -0,0 +1,7 @@
<script>
let foo = 'a';
</script>
<div on:click="{() => foo = 'b'}">
<slot {foo}></slot>
</div>

@ -0,0 +1,20 @@
export default {
html: `
<div>
<p>a</p>
</div>
`,
async test({ assert, target, window }) {
const div = target.querySelector('div');
const click = new window.MouseEvent('click');
await div.dispatchEvent(click);
assert.htmlEqual(target.innerHTML, `
<div>
<p>b</p>
</div>
`);
}
};

@ -0,0 +1,7 @@
<script>
import Nested from './Nested.svelte';
</script>
<Nested let:foo={bar}>
<p>{bar}</p>
</Nested>
Loading…
Cancel
Save