Skip to content

Commit

Permalink
Framework: Resolve failing test from React 15.2.0 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Jul 28, 2016
1 parent a3168e5 commit 89669ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/components/button-group/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ describe( 'ButtonGroup', function() {
it( 'should throw an error if any of the children is not a <Button>', function() {
shallow( <ButtonGroup><div id="test">test</div></ButtonGroup> );

sinon.assert.calledWithExactly( console.error, 'Warning: Failed propType: All children elements should be a Button.' );
/* eslint-disable no-console */
sinon.assert.calledWithMatch( console.error, 'All children elements should be a Button.' );
/* eslint-enable no-console */
} );
} );

0 comments on commit 89669ed

Please sign in to comment.