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

@@ -30,7 +30,7 @@ describe('<ShortUrlVisits />', () => {
shortUrlDetail={{}}
cancelGetShortUrlVisits={identity}
matchMedia={() => ({ matches: false })}
/>
/>,
);
});

View File

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

View File

@@ -25,7 +25,7 @@ describe('<TagVisits />', () => {
history={history}
tagVisits={{ loading: true, visits: [] }}
cancelGetTagVisits={identity}
/>
/>,
);
});

View File

@@ -13,7 +13,7 @@ describe('<TagVisitsHeader />', () => {
beforeEach(() => {
wrapper = shallow(
<TagVisitsHeader tagVisits={tagVisits} goBack={goBack} colorGenerator={{}} />
<TagVisitsHeader tagVisits={tagVisits} goBack={goBack} colorGenerator={{}} />,
);
});
afterEach(() => wrapper.unmount());

View File

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

View File

@@ -24,7 +24,7 @@ describe('<VisitStats />', () => {
visitsInfo={visitsInfo}
cancelGetVisits={identity}
matchMedia={() => ({ matches: false })}
/>
/>,
);
return wrapper;

View File

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

View File

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

View File

@@ -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: {} },
));
});
});