add unit test

pull/427/head
Conduitry 8 years ago
parent aba21f8eb9
commit 96fa0a3eb6

@ -0,0 +1,19 @@
export default {
'skip-ssr': true,
data: {
foo: 'a'
},
test ( assert, component, target ) {
const options = target.querySelectorAll( 'option' );
assert.equal( options[0].selected, true );
assert.equal( options[1].selected, false );
component.set( { foo: 'b' } );
assert.equal( options[0].selected, false );
assert.equal( options[1].selected, true );
}
};

@ -0,0 +1,4 @@
<select value="{{foo}}">
<option>a</option>
<option>b</option>
</select>
Loading…
Cancel
Save