Fixes BlogPostCell tests

This commit is contained in:
Rob Cameron
2020-10-19 16:14:24 -07:00
parent 881530c46c
commit ce17804e51

View File

@@ -20,7 +20,10 @@ describe('BlogPostCell', () => {
})
test('Success renders successfully', async () => {
render(<Success blogPost={standard().blogPost} />)
expect(screen.getByText(/42/i)).toBeInTheDocument()
const post = standard().post
render(<Success post={post} />)
expect(screen.getByText(post.title)).toBeInTheDocument()
expect(screen.getByText(post.body)).toBeInTheDocument()
})
})