chore: fix dynamic component update test

fix-dyn-component-test
gtmnayan 1 year ago
parent 60cd0ec950
commit 632f49600a

@ -1,19 +1,19 @@
export default {
get props() {
return { x: 1 };
return { x: 0 };
},
html: `
<p>Foo 1</p>
<p>Bar 0</p>
`,
test({ assert, component, target }) {
component.x = 2;
component.x = 1;
assert.htmlEqual(
target.innerHTML,
`
<p>Foo 2</p>
<p>Foo 1</p>
`
);
}

Loading…
Cancel
Save