Skip to content

Commit

Permalink
fix: posts -> articles (redwoodjs#4983)
Browse files Browse the repository at this point in the history
Co-authored-by: David Price <[email protected]>
  • Loading branch information
virtuoushub and thedavidprice authored Apr 3, 2022
1 parent 52e96a1 commit 840cb1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/tutorial/chapter5/first-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Let's update the test so that it checks for the expected behavior instead. There

```jsx title="web/src/components/ArticlesCell.test.js"
test('Success renders successfully', async () => {
const posts = standard().posts
render(<Success posts={posts} />)
const articles = standard().articles
render(<Success articles={articles} />)

// highlight-start
expect(screen.getByText(posts[0].title)).toBeInTheDocument()
expect(screen.getByText(articles[0].title)).toBeInTheDocument()
expect(
screen.getByText(
'Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Str...'
Expand Down

0 comments on commit 840cb1c

Please sign in to comment.