Fixes BlogPostCell tests
This commit is contained in:
@@ -20,7 +20,10 @@ describe('BlogPostCell', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('Success renders successfully', async () => {
|
test('Success renders successfully', async () => {
|
||||||
render(<Success blogPost={standard().blogPost} />)
|
const post = standard().post
|
||||||
expect(screen.getByText(/42/i)).toBeInTheDocument()
|
render(<Success post={post} />)
|
||||||
|
|
||||||
|
expect(screen.getByText(post.title)).toBeInTheDocument()
|
||||||
|
expect(screen.getByText(post.body)).toBeInTheDocument()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user