add unit test for #424

pull/426/head
Conduitry 8 years ago
parent eab3f62f25
commit 343a005506

@ -0,0 +1,19 @@
export default {
'skip-ssr': true,
data: {
foo: false
},
test ( assert, component, target ) {
const inputs = target.querySelectorAll( 'input' );
assert.ok( inputs[0].checked );
assert.ok( !inputs[1].checked );
component.set( { foo: true } );
assert.ok( !inputs[0].checked );
assert.ok( inputs[1].checked );
}
};

@ -0,0 +1,2 @@
<input type='radio' bind:group='foo' value='{{false}}'>
<input type='radio' bind:group='foo' value='{{true}}'>
Loading…
Cancel
Save