fixes modal test

This commit is contained in:
tomlum 2021-12-16 16:10:40 -05:00 committed by seotts
parent 1364e4400f
commit 781deeb067

View file

@ -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);
});
});