authelia/web/src/components/Tracker.test.tsx
Clement Michaud 3d20142292 Allow administrator to provide a Google Analytics tracking ID.
Providing a GA tracking ID allows administrators to analyze
how the portal is used by their users in large environments,
i.e., with many users.
This will make even more sense when we have users and admins
management interfaces.
2019-12-08 14:31:48 +01:00

11 lines
311 B
TypeScript

import React from 'react';
import { mount } from "enzyme";
import Tracker from "./Tracker";
import { MemoryRouter as Router } from 'react-router-dom';
const mountWithRouter = node => mount(<Router>{node}</Router>);
it('renders without crashing', () => {
mountWithRouter(<Tracker trackingIDs={[]} />);
});