Added cities stats graphic on short url visits page

This commit is contained in:
Alejandro Celaya
2019-01-07 11:53:14 +01:00
parent f9360683e9
commit dc9c1712ff
4 changed files with 42 additions and 12 deletions

View File

@@ -23,6 +23,7 @@ describe('<ShortUrlVisits />', () => {
processCountriesStats: statsProcessor,
processOsStats: statsProcessor,
processReferrersStats: statsProcessor,
processCitiesStats: statsProcessor,
});
wrapper = shallow(
@@ -74,7 +75,7 @@ describe('<ShortUrlVisits />', () => {
const wrapper = createComponent({ loading: false, error: false, visits: [{}, {}, {}] });
const graphs = wrapper.find(GraphCard);
const sortableBarGraphs = wrapper.find(SortableBarGraph);
const expectedGraphsCount = 4;
const expectedGraphsCount = 5;
expect(graphs.length + sortableBarGraphs.length).toEqual(expectedGraphsCount);
});