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