Pass prop to BlogPost test

This commit is contained in:
Rob Cameron
2020-10-19 15:20:37 -07:00
parent 62bd3f54cc
commit f72b8be9d6

View File

@@ -5,7 +5,7 @@ import BlogPost from './BlogPost'
describe('BlogPost', () => {
it('renders successfully', () => {
expect(() => {
render(<BlogPost />)
render(<BlogPost post={{ id: 1, name: 'John Doe', body: 'Body' }} />)
}).not.toThrow()
})
})