Fixed coding styles

This commit is contained in:
Alejandro Celaya
2020-08-22 08:10:31 +02:00
parent 343a93b984
commit a91f1b3bd4
60 changed files with 133 additions and 125 deletions

View File

@@ -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;

View File

@@ -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}?`,
);
});

View File

@@ -28,7 +28,7 @@ describe('<EditServer />', () => {
match={match}
selectedServer={selectedServer}
selectServer={jest.fn()}
/>
/>,
);
});

View File

@@ -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);

View File

@@ -9,7 +9,7 @@ describe('<ForServerVersion />', () => {
wrapped = mount(
<ForServerVersion minVersion={minVersion} maxVersion={maxVersion} selectedServer={selectedServer}>
<span>Hello</span>
</ForServerVersion>
</ForServerVersion>,
);
return wrapped;

View File

@@ -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());

View File

@@ -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);