mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +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;
|
let wrapper: ShallowWrapper;
|
||||||
const createWrapper = (serverData?: ServerData) => {
|
const createWrapper = (serverData?: ServerData) => {
|
||||||
wrapper = shallow(
|
wrapper = shallow(
|
||||||
<DuplicatedServerModal
|
<DuplicatedServerModal isOpen serverData={serverData} toggle={jest.fn()} onDiscard={onDiscard} onSave={onSave} />,
|
||||||
serverData={serverData}
|
|
||||||
isOpen={true}
|
|
||||||
toggle={jest.fn()}
|
|
||||||
onDiscard={onDiscard}
|
|
||||||
onSave={onSave}
|
|
||||||
/>,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return wrapper;
|
return wrapper;
|
||||||
|
|
Loading…
Reference in a new issue