|
|
@ -50,12 +50,12 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
test(assert, component, target, window) {
|
|
|
|
async test(assert, component, target, window) {
|
|
|
|
const input = document.querySelectorAll('input[type="checkbox"]')[2];
|
|
|
|
const input = document.querySelectorAll('input[type="checkbox"]')[2];
|
|
|
|
const change = new window.Event('change');
|
|
|
|
const change = new window.Event('change');
|
|
|
|
|
|
|
|
|
|
|
|
input.checked = true;
|
|
|
|
input.checked = true;
|
|
|
|
input.dispatchEvent(change);
|
|
|
|
await input.dispatchEvent(change);
|
|
|
|
|
|
|
|
|
|
|
|
assert.ok(component.todos.third.done);
|
|
|
|
assert.ok(component.todos.third.done);
|
|
|
|
assert.htmlEqual(target.innerHTML, `
|
|
|
|
assert.htmlEqual(target.innerHTML, `
|
|
|
|