mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-11 10:03:51 +00:00
Reduced unnecesary lines in test
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user