mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-22 22:46:19 +00:00
Fixed coding styles
This commit is contained in:
@@ -15,7 +15,7 @@ describe('<CreateServer />', () => {
|
||||
const CreateServer = createServerConstruct(ImportServersBtn, () => [ serversImported, () => '' ]);
|
||||
|
||||
wrapper = shallow(
|
||||
<CreateServer createServer={createServerMock} resetSelectedServer={identity} history={historyMock} />
|
||||
<CreateServer createServer={createServerMock} resetSelectedServer={identity} history={historyMock} />,
|
||||
);
|
||||
|
||||
return wrapper;
|
||||
|
||||
@@ -22,7 +22,7 @@ describe('<DeleteServerModal />', () => {
|
||||
isOpen={true}
|
||||
deleteServer={deleteServerMock}
|
||||
history={historyMock}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
});
|
||||
afterEach(() => wrapper.unmount());
|
||||
@@ -38,7 +38,7 @@ describe('<DeleteServerModal />', () => {
|
||||
const modalBody = wrapper.find(ModalBody);
|
||||
|
||||
expect(modalBody.find('p').first().text()).toEqual(
|
||||
`Are you sure you want to remove ${serverName}?`
|
||||
`Are you sure you want to remove ${serverName}?`,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ describe('<EditServer />', () => {
|
||||
match={match}
|
||||
selectedServer={selectedServer}
|
||||
selectServer={jest.fn()}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ describe('<ServersDropdown />', () => {
|
||||
|
||||
it('shows a message when no servers exist yet', () => {
|
||||
wrapped = shallow(
|
||||
<ServersDropdown servers={{}} listServers={identity} history={history} />
|
||||
<ServersDropdown servers={{}} listServers={identity} history={history} />,
|
||||
);
|
||||
const item = wrapped.find(DropdownItem);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ describe('<ForServerVersion />', () => {
|
||||
wrapped = mount(
|
||||
<ForServerVersion minVersion={minVersion} maxVersion={maxVersion} selectedServer={selectedServer}>
|
||||
<span>Hello</span>
|
||||
</ForServerVersion>
|
||||
</ForServerVersion>,
|
||||
);
|
||||
|
||||
return wrapped;
|
||||
|
||||
@@ -23,7 +23,7 @@ describe('<ImportServersBtn />', () => {
|
||||
const ImportServersBtn = importServersBtnConstruct(serversImporterMock);
|
||||
|
||||
wrapper = shallow(
|
||||
<ImportServersBtn createServers={createServersMock} fileRef={fileRef} onImport={onImportMock} />
|
||||
<ImportServersBtn createServers={createServersMock} fileRef={fileRef} onImport={onImportMock} />,
|
||||
);
|
||||
});
|
||||
afterEach(() => wrapper.unmount());
|
||||
|
||||
@@ -33,7 +33,7 @@ describe('<ServerError />', () => {
|
||||
wrapper = shallow(
|
||||
<BrowserRouter>
|
||||
<ServerError type={type} servers={{}} selectedServer={selectedServer} />
|
||||
</BrowserRouter>
|
||||
</BrowserRouter>,
|
||||
);
|
||||
const wrapperText = wrapper.html();
|
||||
const textPairs = Object.entries(textsToFind);
|
||||
|
||||
Reference in New Issue
Block a user