chore: fix dynamic component update test

fix-dyn-component-test
gtmnayan 2 years ago
parent 60cd0ec950
commit 632f49600a

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

Loading…
Cancel
Save