mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
fixes modal test
This commit is contained in:
parent
1364e4400f
commit
781deeb067
1 changed files with 4 additions and 3 deletions
|
@ -46,9 +46,10 @@ describe('Modal', () => {
|
|||
|
||||
test('Close button shows correctly', () => {
|
||||
const component = mountWithIntl(
|
||||
<EmailConfirmationModal />, {context: {store: defaultStore}}
|
||||
<EmailConfirmationModal isOpen />, {context: {store: defaultStore}}
|
||||
);
|
||||
expect(component.find('div.modal-content-close').exists()).toBe(false);
|
||||
expect(component.find('img.modal-content-close-img').exists()).toBe(false);
|
||||
|
||||
expect(component.find('div.modal-content-close').exists()).toBe(true);
|
||||
expect(component.find('img.modal-content-close-img').exists()).toBe(true);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue