MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/App/App.test.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import ReactDOM from 'react-dom';
import { MemoryRouter } from 'react-router-dom';
import App from './App';

it('renders without crashing', () => {
  const div = document.createElement('div');
  ReactDOM.render(<MemoryRouter><App /></MemoryRouter>, div);
  global.document.getElementById = id => id === 'root' && div;
});