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

@@ -20,7 +20,7 @@ describe('<DeleteShortUrlModal />', () => {
toggle={identity}
deleteShortUrl={deleteShortUrl}
resetDeleteShortUrl={identity}
/>
/>,
);
return wrapper;

View File

@@ -17,7 +17,7 @@ describe('<EditMetaModal />', () => {
toggle={toggle}
editShortUrlMeta={editShortUrlMeta}
resetShortUrlMeta={resetShortUrlMeta}
/>
/>,
);
return wrapper;

View File

@@ -15,7 +15,7 @@ describe('<EditShortUrlModal />', () => {
shortUrlEdition={shortUrlEdition}
toggle={toggle}
editShortUrl={editShortUrl}
/>
/>,
);
return wrapper;

View File

@@ -26,7 +26,7 @@ describe('<EditTagsModal />', () => {
toggle={toggle}
editShortUrlTags={editShortUrlTags}
resetShortUrlsTags={resetShortUrlsTags}
/>
/>,
);
return wrapper;

View File

@@ -21,7 +21,7 @@ describe('<ShortUrlVisitsCount />', () => {
const maxVisitsTooltip = wrapper.find(UncontrolledTooltip);
expect(wrapper.html()).toEqual(
`<span><strong class="short-url-visits-count__amount">${visitsCount}</strong></span>`
`<span><strong class="short-url-visits-count__amount">${visitsCount}</strong></span>`,
);
expect(maxVisitsHelper).toHaveLength(0);
expect(maxVisitsTooltip).toHaveLength(0);

View File

@@ -34,7 +34,7 @@ describe('<ShortUrlsRow />', () => {
const ShortUrlsRow = createShortUrlsRow(ShortUrlsRowMenu, colorGenerator, useStateFlagTimeout);
wrapper = shallow(
<ShortUrlsRow shortUrlsListParams={{}} refreshList={mockFunction} selecrtedServer={server} shortUrl={shortUrl} />
<ShortUrlsRow shortUrlsListParams={{}} refreshList={mockFunction} selecrtedServer={server} shortUrl={shortUrl} />,
);
});
afterEach(() => wrapper.unmount());

View File

@@ -23,7 +23,7 @@ describe('<ShortUrlsRowMenu />', () => {
EditTagsModal,
EditMetaModal,
EditShortUrlModal,
() => ''
() => '',
);
wrapper = shallow(
@@ -31,7 +31,7 @@ describe('<ShortUrlsRowMenu />', () => {
selectedServer={selectedServer}
shortUrl={shortUrl}
onCopyToClipboard={onCopyToClipboard}
/>
/>,
);
return wrapper;