import * as assert from 'assert'; export default { data: { foo: true }, html: `\n

true

`, test ( component, target, window ) { const input = target.querySelector( 'input' ); assert.equal( input.checked, true ); const event = new window.Event( 'change' ); input.checked = false; input.dispatchEvent( event ); assert.equal( target.innerHTML, `\n

false

` ); component.set({ foo: true }); assert.equal( input.checked, true ); assert.equal( target.innerHTML, `\n

true

` ); } };