Skip to content

Commit bac19b3

Browse files
committed
added test
1 parent 454865b commit bac19b3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tests/modal.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ describe('Modal', () => {
99
}
1010

1111
it('should return nothing until clicked', () => {
12-
Test(<Modal show={false} onClose={close}/>)
12+
Test(<Modal show={false} onClose={close}>hey</Modal>)
1313
.test(({instance}) =>{
1414
expect(instance.innerHTML).to.be.equal(undefined)
1515
})
1616
});
1717

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+
1825
});

0 commit comments

Comments
 (0)