Skip to content

Commit

Permalink
fix wrong lines highlighted redwoodjs#3.
Browse files Browse the repository at this point in the history
  • Loading branch information
exzachlyvv committed Jul 29, 2022
1 parent 2cc8ffd commit b4c693d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ export default Article

Redwood provides the test function `mockGraphQLQuery()` for providing the result of a given named GraphQL. In this case our query is named `getArticle` and we can mock that in our test as follows:

```jsx {8-16,20} title="web/src/components/Article/Article.test.js"
```jsx {6-14,18} title="web/src/components/Article/Article.test.js"
import { render, screen } from '@redwoodjs/testing/web'
import Article from 'src/components/Article'

Expand Down

0 comments on commit b4c693d

Please sign in to comment.