mirror of https://github.com/sveltejs/svelte
parent
92c5a8aa21
commit
96792058b9
@ -0,0 +1,11 @@
|
||||
// key is not used in the template
|
||||
export default {
|
||||
html: `<div></div>`,
|
||||
async test({ assert, component, target, window }) {
|
||||
const div = target.querySelector('div');
|
||||
|
||||
component.value = 5;
|
||||
assert.htmlEqual(target.innerHTML, `<div></div>`);
|
||||
assert.notStrictEqual(div, target.querySelector('div'));
|
||||
}
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
export let value = 0;
|
||||
</script>
|
||||
|
||||
{#key value}
|
||||
<div />
|
||||
{/key}
|
Loading…
Reference in new issue