Created
October 9, 2016 15:58
-
-
Save brookslyrette/f57c52a27cd79e690dbe855f9b8c41da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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