Update tests

This commit is contained in:
Rob Cameron
2022-02-08 15:39:24 -08:00
parent 10df447763
commit c3d234f532
5 changed files with 19 additions and 19 deletions

View File

@@ -22,12 +22,12 @@ describe('ArticlesCell', () => {
})
test('Success renders successfully', async () => {
const posts = standard().posts
render(<Success posts={posts} />)
const articles = standard().posts
render(<Success articles={articles} />)
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()
expect(screen.getByText(articles[0].title)).toBeInTheDocument()
expect(screen.getByText(articles[0].body)).toBeInTheDocument()
expect(screen.getByText(articles[1].title)).toBeInTheDocument()
expect(screen.getByText(articles[1].body)).toBeInTheDocument()
})
})