import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

it('renders without crashing', () => {
  const div = document.createElement('div');
  ReactDOM.render(<App />, div);
});

import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

it('renders without crashing', () => {
  window.matchMedia = jest.genMockFunction().mockImplementation(function () {
    return {
      matches: true
    };
  });
  const div = document.createElement('div');
  ReactDOM.render(<App />, div);
});

Add a mock for window.matchMedia.
Add a mock for window.matchMedia.

The window.matchMedia function is used in the Spectacle Slide component (and other parts of Radium).
