Skip to content

Instantly share code, notes, and snippets.

@brookslyrette
Created October 9, 2016 15:58
Show Gist options
  • Select an option

  • Save brookslyrette/f57c52a27cd79e690dbe855f9b8c41da to your computer and use it in GitHub Desktop.

Select an option

Save brookslyrette/f57c52a27cd79e690dbe855f9b8c41da to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import ListingItem from './ListingItem.js';
import { MemoryRouter } from 'react-router';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<MemoryRouter>
<ListingItem index={0} item={{
thumbnail: '',
created_utc: 0,
url: '',
title: '',
}}/>
</MemoryRouter>, div);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment