Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
better coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Aug 18, 2016
1 parent d4d45c5 commit 6a19654
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Modal/__tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,15 @@ describe('Modal', () => {
)
expect(component.toJSON()).toMatchSnapshot()
})

it('renders an alert modal', () => {
const component = renderer.create(
<Modal
type="alert"
>
Something bad happened!
</Modal>
)
expect(component.toJSON()).toMatchSnapshot()
})
})

0 comments on commit 6a19654

Please sign in to comment.