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

@@ -17,7 +17,7 @@ describe('<CreateShortUrl />', () => {
const CreateShortUrl = createShortUrlsCreator(TagsSelector, () => '', () => '');
wrapper = shallow(
<CreateShortUrl shortUrlCreationResult={shortUrlCreationResult} createShortUrl={createShortUrl} />
<CreateShortUrl shortUrlCreationResult={shortUrlCreationResult} createShortUrl={createShortUrl} />,
);
});
afterEach(() => {

View File

@@ -52,7 +52,7 @@ describe('<SearchBar />', () => {
it('updates short URLs list when a tag is removed', () => {
wrapper = shallow(
<SearchBar shortUrlsListParams={{ tags: [ 'foo' ] }} listShortUrls={listShortUrlsMock} />
<SearchBar shortUrlsListParams={{ tags: [ 'foo' ] }} listShortUrls={listShortUrlsMock} />,
);
const tag = wrapper.find(Tag).first();
@@ -63,7 +63,7 @@ describe('<SearchBar />', () => {
it.each([ 'startDateChange', 'endDateChange' ])('updates short URLs list when date range changes', (event) => {
wrapper = shallow(
<SearchBar shortUrlsListParams={{}} listShortUrls={listShortUrlsMock} />
<SearchBar shortUrlsListParams={{}} listShortUrls={listShortUrlsMock} />,
);
const dateRange = wrapper.find(DateRangeRow);

View File

@@ -37,7 +37,7 @@ describe('<ShortUrlsList />', () => {
]
}
mercureInfo={{ loading: true }}
/>
/>,
);
});

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;

View File

@@ -60,7 +60,7 @@ describe('shortUrlDeletionReducer', () => {
});
it.each(
[[ undefined ], [ null ], [ 'example.com' ]]
[[ undefined ], [ null ], [ 'example.com' ]],
)('dispatches proper actions if API client request succeeds', async (domain) => {
const apiClientMock = {
deleteShortUrl: jest.fn(() => ''),

View File

@@ -70,7 +70,7 @@ describe('shortUrlTagsReducer', () => {
expect(dispatch).toHaveBeenNthCalledWith(1, { type: EDIT_SHORT_URL_TAGS_START });
expect(dispatch).toHaveBeenNthCalledWith(
2,
{ type: SHORT_URL_TAGS_EDITED, tags: normalizedTags, shortCode, domain }
{ type: SHORT_URL_TAGS_EDITED, tags: normalizedTags, shortCode, domain },
);
});