Created ManageServersRowDropdown test

This commit is contained in:
Alejandro Celaya
2021-10-23 10:55:52 +02:00
parent c7c32b494e
commit 8618519b6b
8 changed files with 93 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ describe('<EditDomainRedirectsModal />', () => {
it('has different handlers to toggle the modal', () => {
expect(toggle).not.toHaveBeenCalled();
(wrapper.prop('toggle') as Function)(); // eslint-disable-line @typescript-eslint/no-unnecessary-type-assertion
(wrapper.prop('toggle') as Function)();
(wrapper.find(ModalHeader).prop('toggle') as Function)();
wrapper.find(Button).first().simulate('click');