Extracted sorting dropdown to its own component

This commit is contained in:
Alejandro Celaya
2018-10-28 21:26:47 +01:00
parent 56ad6d9e1b
commit 4ad8e909d4
9 changed files with 168 additions and 61 deletions

View File

@@ -12,11 +12,7 @@ describe('<GraphCard />', () => {
};
const matchMedia = () => ({ matches: false });
afterEach(() => {
if (wrapper) {
wrapper.unmount();
}
});
afterEach(() => wrapper && wrapper.unmount());
it('renders Doughnut when is not a bar chart', () => {
wrapper = shallow(<GraphCard matchMedia={matchMedia} title="The chart" stats={stats} />);