mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +03:00
Reduced unnecesary lines in test
This commit is contained in:
parent
053b38bee3
commit
3cb066f5f5
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue