diff --git a/web/src/components/BlogPostsCell/BlogPostsCell.test.js b/web/src/components/BlogPostsCell/BlogPostsCell.test.js index 0d1fc66..94337f8 100644 --- a/web/src/components/BlogPostsCell/BlogPostsCell.test.js +++ b/web/src/components/BlogPostsCell/BlogPostsCell.test.js @@ -20,7 +20,12 @@ describe('BlogPostsCell', () => { }) test('Success renders successfully', async () => { - render() - expect(screen.getByText(/42/i)).toBeInTheDocument() + const posts = standard().posts + render() + + expect(screen.getByText(posts[0].title)).toBeInTheDocument() + expect(screen.getByText(posts[0].body)).toBeInTheDocument() + expect(screen.getByText(posts[1].title)).toBeInTheDocument() + expect(screen.getByText(posts[1].body)).toBeInTheDocument() }) })