Pass prop to BlogPost test
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user