We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 454865b commit bac19b3Copy full SHA for bac19b3
1 file changed
tests/modal.jsx
@@ -9,10 +9,17 @@ describe('Modal', () => {
9
}
10
11
it('should return nothing until clicked', () => {
12
- Test(<Modal show={false} onClose={close}/>)
+ Test(<Modal show={false} onClose={close}>hey</Modal>)
13
.test(({instance}) =>{
14
expect(instance.innerHTML).to.be.equal(undefined)
15
})
16
});
17
18
+ it('should show the modal', () => {
19
+ Test(<Modal show={true} onClose={close}>hey</Modal>)
20
+ .test(({instance}) =>{
21
+ expect(React.findDOMNode(instance).innerHTML).to.match(/div/)
22
+ })
23
+ });
24
+
25
0 commit comments