mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-13 11:03:50 +00:00
Fixed coding styles
This commit is contained in:
@@ -17,7 +17,7 @@ describe('<CreateShortUrl />', () => {
|
||||
const CreateShortUrl = createShortUrlsCreator(TagsSelector, () => '', () => '');
|
||||
|
||||
wrapper = shallow(
|
||||
<CreateShortUrl shortUrlCreationResult={shortUrlCreationResult} createShortUrl={createShortUrl} />
|
||||
<CreateShortUrl shortUrlCreationResult={shortUrlCreationResult} createShortUrl={createShortUrl} />,
|
||||
);
|
||||
});
|
||||
afterEach(() => {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ describe('<ShortUrlsList />', () => {
|
||||
]
|
||||
}
|
||||
mercureInfo={{ loading: true }}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ describe('<DeleteShortUrlModal />', () => {
|
||||
toggle={identity}
|
||||
deleteShortUrl={deleteShortUrl}
|
||||
resetDeleteShortUrl={identity}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
|
||||
return wrapper;
|
||||
|
||||
@@ -17,7 +17,7 @@ describe('<EditMetaModal />', () => {
|
||||
toggle={toggle}
|
||||
editShortUrlMeta={editShortUrlMeta}
|
||||
resetShortUrlMeta={resetShortUrlMeta}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
|
||||
return wrapper;
|
||||
|
||||
@@ -15,7 +15,7 @@ describe('<EditShortUrlModal />', () => {
|
||||
shortUrlEdition={shortUrlEdition}
|
||||
toggle={toggle}
|
||||
editShortUrl={editShortUrl}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
|
||||
return wrapper;
|
||||
|
||||
@@ -26,7 +26,7 @@ describe('<EditTagsModal />', () => {
|
||||
toggle={toggle}
|
||||
editShortUrlTags={editShortUrlTags}
|
||||
resetShortUrlsTags={resetShortUrlsTags}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
|
||||
return wrapper;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(() => ''),
|
||||
|
||||
@@ -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 },
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user