Skip to content

Commit

Permalink
adding extra test coverages
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Viner authored and Cameron Viner committed Oct 15, 2015
1 parent e9e6c10 commit 8887d25
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/stepper/__tests__/stepper-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ describe('Stepper', function() {
});

it('should not call onChange if we can not increment', function() {
//Cameron write test for this
props.value = 3;
var renderOutput = TestUtils.renderIntoDocument(<Stepper {... props} />);
renderOutput.increment();
assert(props.onChange.notCalled);
});

});
Expand All @@ -80,7 +83,10 @@ describe('Stepper', function() {
});

it('should not call onChange if we can not decrement', function() {
//Cameron write test for this
props.value = 1;
var renderOutput = TestUtils.renderIntoDocument(<Stepper {... props} />);
renderOutput.decrement();
assert(props.onChange.notCalled);
});

});
Expand Down

0 comments on commit 8887d25

Please sign in to comment.