You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importErrorDialogfrom'@/components/TwilioVideoMeeting/ErrorDialog/ErrorDialog';import{shallow}from'enzyme';importDialogfrom'rc-dialog';importReactfrom'react';describe('Testing the ErrorDialog component',()=>{constmessage='Fake Error message';it('should display error message but not error code is the later does not exist',()=>{consterror={ message };constwrapper=shallow(<ErrorDialogdismissError={()=>{}}error={error}/>);expect(wrapper.find(Dialog).text()).toContain(message);expect(wrapper.find('code').exists()).toBe(false);});});
It throws following error
the ErrorDialog component › should display error message but not error code is the later does not exist
Hi, I was trying to test the dialog component but it's not working.
Here is my component code
Here is my test code
It throws following error
the ErrorDialog component › should display error message but not error code is the later does not exist
Any Help would be appreciated
The text was updated successfully, but these errors were encountered: