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', () => { describe('BlogPost', () => {
it('renders successfully', () => { it('renders successfully', () => {
expect(() => { expect(() => {
render(<BlogPost />) render(<BlogPost post={{ id: 1, name: 'John Doe', body: 'Body' }} />)
}).not.toThrow() }).not.toThrow()
}) })
}) })