add another test case

pull/5397/head
Tan Li Hau 5 years ago
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…
Cancel
Save