Created section to set default date interval for visits

This commit is contained in:
Alejandro Celaya
2021-03-06 16:54:43 +01:00
parent d3f9650e82
commit fee62484b5
12 changed files with 170 additions and 42 deletions

View File

@@ -7,6 +7,7 @@ import { MercureBoundProps } from '../../src/mercure/helpers/boundToMercureHub';
import { VisitsInfo } from '../../src/visits/types';
import VisitsStats from '../../src/visits/VisitsStats';
import { OrphanVisitsHeader } from '../../src/visits/OrphanVisitsHeader';
import { Settings } from '../../src/settings/reducers/settings';
describe('<OrphanVisits />', () => {
it('wraps visits stats and header', () => {
@@ -24,6 +25,7 @@ describe('<OrphanVisits />', () => {
history={Mock.of<History>({ goBack })}
location={Mock.all<Location>()}
match={Mock.of<match>({ url: 'the_base_url' })}
settings={Mock.all<Settings>()}
/>,
).dive();
const stats = wrapper.find(VisitsStats);