export default { html: `
000
`, async test({ assert, component, target, window }) { let div = target.querySelector("div"); component.value = 2; assert.htmlEqual(target.innerHTML, `
200
`); assert.notStrictEqual(div, target.querySelector("div")); div = target.querySelector("div"); component.anotherValue = 5; assert.htmlEqual(target.innerHTML, `
250
`); assert.notStrictEqual(div, target.querySelector("div")); div = target.querySelector("div"); component.thirdValue = 9; assert.htmlEqual(target.innerHTML, `
259
`); assert.strictEqual(div, target.querySelector("div")); // make dirty while maintain the value of `value + anotherValue` // should update the content, but not recreate the elements await component.$set({ value: 4, anotherValue: 3 }); assert.htmlEqual(target.innerHTML, `
439
`); assert.strictEqual(div, target.querySelector("div")); } };