mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-05-28 16:16:24 +00:00
Fixed coding styles
This commit is contained in:
@@ -30,7 +30,7 @@ describe('<ShortUrlVisits />', () => {
|
||||
shortUrlDetail={{}}
|
||||
cancelGetShortUrlVisits={identity}
|
||||
matchMedia={() => ({ matches: false })}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ describe('<ShortUrlVisitsHeader />', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = shallow(
|
||||
<ShortUrlVisitsHeader shortUrlDetail={shortUrlDetail} shortUrlVisits={shortUrlVisits} goBack={goBack} />
|
||||
<ShortUrlVisitsHeader shortUrlDetail={shortUrlDetail} shortUrlVisits={shortUrlVisits} goBack={goBack} />,
|
||||
);
|
||||
});
|
||||
afterEach(() => wrapper.unmount());
|
||||
|
||||
@@ -25,7 +25,7 @@ describe('<TagVisits />', () => {
|
||||
history={history}
|
||||
tagVisits={{ loading: true, visits: [] }}
|
||||
cancelGetTagVisits={identity}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ describe('<TagVisitsHeader />', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = shallow(
|
||||
<TagVisitsHeader tagVisits={tagVisits} goBack={goBack} colorGenerator={{}} />
|
||||
<TagVisitsHeader tagVisits={tagVisits} goBack={goBack} colorGenerator={{}} />,
|
||||
);
|
||||
});
|
||||
afterEach(() => wrapper.unmount());
|
||||
|
||||
@@ -10,7 +10,7 @@ describe('<VisitsHeader />', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = shallow(
|
||||
<VisitsHeader visits={visits} goBack={goBack} title={title} />
|
||||
<VisitsHeader visits={visits} goBack={goBack} title={title} />,
|
||||
);
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@ describe('<VisitsHeader />', () => {
|
||||
const visitsBadge = wrapper.find('.badge');
|
||||
|
||||
expect(visitsBadge.html()).toContain(
|
||||
`Visits: <span><strong class="short-url-visits-count__amount">${visits.length}</strong></span>`
|
||||
`Visits: <span><strong class="short-url-visits-count__amount">${visits.length}</strong></span>`,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('<VisitStats />', () => {
|
||||
visitsInfo={visitsInfo}
|
||||
cancelGetVisits={identity}
|
||||
matchMedia={() => ({ matches: false })}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
|
||||
return wrapper;
|
||||
|
||||
@@ -16,7 +16,7 @@ describe('<VisitsTable />', () => {
|
||||
selectedVisits={selectedVisits}
|
||||
setSelectedVisits={setSelectedVisits}
|
||||
matchMedia={matchMedia}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
|
||||
return wrapper;
|
||||
@@ -64,7 +64,7 @@ describe('<VisitsTable />', () => {
|
||||
});
|
||||
|
||||
it.each(
|
||||
rangeOf(20, (value) => [ value ])
|
||||
rangeOf(20, (value) => [ value ]),
|
||||
)('does not render footer when there is only one page to render', (visitsCount) => {
|
||||
const wrapper = createWrapper(rangeOf(visitsCount, () => ({ browser: '', date: '', referer: '' })));
|
||||
const tr = wrapper.find('tbody').find('tr');
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('<SortableBarGraph />', () => {
|
||||
stats={{ ...stats, ...extraStats }}
|
||||
sortingItems={sortingItems}
|
||||
withPagination={withPagination}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
|
||||
return wrapper;
|
||||
@@ -108,7 +108,7 @@ describe('<SortableBarGraph />', () => {
|
||||
</span>
|
||||
)}
|
||||
/>
|
||||
</span>
|
||||
</span>,
|
||||
).find(SortableBarGraph);
|
||||
const header = wrapper.renderProp('extraHeaderContent')();
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ describe('visitCreationReducer', () => {
|
||||
describe('createNewVisit', () => {
|
||||
it('just returns the action with proper type', () =>
|
||||
expect(createNewVisit({ shortUrl: {}, visit: {} })).toEqual(
|
||||
{ type: CREATE_VISIT, shortUrl: {}, visit: {} }
|
||||
{ type: CREATE_VISIT, shortUrl: {}, visit: {} },
|
||||
));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user