Skip to content

Commit

Permalink
adds a test for the new is-busy class
Browse files Browse the repository at this point in the history
  • Loading branch information
rralian committed May 24, 2017
1 parent f70f88c commit 7dc076c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/components/button-group/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ describe( 'ButtonGroup', function() {
assert.equal( 2, buttonGroup.find( Button ).length );
} );

it( 'should get the busy `is-busy` class when passed the `busy` prop', function() {
const buttonGroup = shallow( <ButtonGroup busy /> );
assert.equal( 1, buttonGroup.find( '.is-busy' ).length );
} );

it( 'should throw an error if any of the children is not a <Button>', function() {
shallow( <ButtonGroup><div id="test">test</div></ButtonGroup> );

Expand Down

0 comments on commit 7dc076c

Please sign in to comment.