20 lines
417 B
JavaScript
20 lines
417 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import App from './App';
|
|
|
|
jest.mock('react-chartjs-2', () => ({
|
|
Line: () => null,
|
|
Polar: () => null,
|
|
Pie: () => null,
|
|
Radar: () => null,
|
|
Bar: () => null,
|
|
Doughnut: () => null,
|
|
}));
|
|
|
|
|
|
it('renders without crashing', () => {
|
|
const div = document.createElement('div');
|
|
ReactDOM.render(<App />, div);
|
|
ReactDOM.unmountComponentAtNode(div);
|
|
});
|