Reduced unnecesary lines in test

This commit is contained in:
Alejandro Celaya 2021-12-31 17:56:37 +01:00
parent 053b38bee3
commit 3cb066f5f5

View file

@ -10,13 +10,7 @@ describe('<DuplicatedServerModal />', () => {
let wrapper: ShallowWrapper;
const createWrapper = (serverData?: ServerData) => {
wrapper = shallow(
<DuplicatedServerModal
serverData={serverData}
isOpen={true}
toggle={jest.fn()}
onDiscard={onDiscard}
onSave={onSave}
/>,
<DuplicatedServerModal isOpen serverData={serverData} toggle={jest.fn()} onDiscard={onDiscard} onSave={onSave} />,
);
return wrapper;