18 lines
364 B
JavaScript
18 lines
364 B
JavaScript
|
import React from 'react';
|
||
|
import ReactDOM from 'react-dom';
|
||
|
import { MemoryRouter } from 'react-router-dom';
|
||
|
|
||
|
import App from './app';
|
||
|
|
||
|
describe('<App />', () => {
|
||
|
test('renders without exploding', () => {
|
||
|
const div = document.createElement('div');
|
||
|
ReactDOM.render(
|
||
|
<MemoryRouter>
|
||
|
<App />
|
||
|
</MemoryRouter>,
|
||
|
div
|
||
|
);
|
||
|
});
|
||
|
});
|