23 lines
627 B
TypeScript
23 lines
627 B
TypeScript
|
import * as React from 'react';
|
||
|
import * as ReactDOM from 'react-dom';
|
||
|
import { Provider } from 'react-redux';
|
||
|
import { MemoryRouter } from 'react-router-dom';
|
||
|
import App from './App';
|
||
|
|
||
|
it('renders without crashing', () => {
|
||
|
const storeFake = (state: any) => ({
|
||
|
default: () => {},
|
||
|
subscribe: () => {},
|
||
|
dispatch: () => {},
|
||
|
getState: () => ({ ...state })
|
||
|
});
|
||
|
const store = storeFake({}) as any;
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Provider store={store}>
|
||
|
<MemoryRouter>
|
||
|
<App/>
|
||
|
</MemoryRouter>
|
||
|
</Provider>, document.createElement('div'));
|
||
|
});
|