Skip to content

Commit

Permalink
Update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
tadatuta committed Jun 23, 2017
1 parent cdc095c commit 0c8de59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common.blocks/select/_mode/select_mode_radio-check.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,16 @@ describe('select_mode_radio-check', function() {
it('should add/remove control according to value', function() {
var control = select._elem('control').domElem;

dom.contains(select.domElem, control).should.be.true;

select.setVal(undefined);
dom.contains(select.domElem, control).should.be.false;

select.setVal(1);
control = select._elem('control').domElem;
dom.contains(select.domElem, control).should.be.true;
select.setVal(2);
select.findChildElems('control').size().should.equal(1);
});

it('should create control in case of none checked', function() {
Expand Down

0 comments on commit 0c8de59

Please sign in to comment.