Skip to content

Commit

Permalink
Update comment-form.md (#5637)
Browse files Browse the repository at this point in the history
* Update comment-form.md

Fix a broken import in example code

* Update rbac.md

Fix a broken import in example code

* Update comment-form.md

Fix a broken import in example code

* typo(docs): fix typo in docs

fix some broken imports in the example code of the tutorial documentation
`api/src/lib/db` -> `src/lib/db`

Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
  • Loading branch information
fakkio and jtoar committed Jun 10, 2022
1 parent c91b3dc commit 5e3cb58
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/docs/tutorial/chapter6/comment-form.md
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ Each scenario here is associated with its own post, so rather than counting all
```jsx title="api/src/services/comments/comments.test.js"
import { comments, createComment } from './comments'
// highlight-next-line
import { db } from 'api/src/lib/db'
import { db } from 'src/lib/db'
describe('comments', () => {
scenario('returns all comments', async (scenario) => {
Expand All @@ -1386,7 +1386,7 @@ describe('comments', () => {
```tsx title="api/src/services/comments/comments.test.ts"
import { comments, createComment } from './comments'
// highlight-next-line
import { db } from 'api/src/lib/db'
import { db } from 'src/lib/db'
import type { StandardScenario } from './comments.scenarios'
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/tutorial/chapter7/rbac.md
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ We'll need a test to go along with that functionality. How do we test `requireAu
```javascript title="api/src/services/comments/comments.test.js"
// highlight-next-line
import { comments, createComment, deleteComment } from './comments'
import { db } from 'api/src/lib/db'
import { db } from 'src/lib/db'
// highlight-next-line
import { AuthenticationError, ForbiddenError } from '@redwoodjs/graphql-server'

Expand Down Expand Up @@ -1143,7 +1143,7 @@ describe('comments', () => {
```ts title="api/src/services/comments/comments.test.ts"
// highlight-next-line
import { comments, createComment, deleteComment } from './comments'
import { db } from 'api/src/lib/db'
import { db } from 'src/lib/db'
// highlight-next-line
import { AuthenticationError, ForbiddenError } from '@redwoodjs/graphql-server'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ Each scenario here is associated with its own post, so rather than counting all
```jsx title="api/src/services/comments/comments.test.js"
import { comments, createComment } from './comments'
// highlight-next-line
import { db } from 'api/src/lib/db'
import { db } from 'src/lib/db'
describe('comments', () => {
scenario('returns all comments', async (scenario) => {
Expand All @@ -1386,7 +1386,7 @@ describe('comments', () => {
```tsx title="api/src/services/comments/comments.test.ts"
import { comments, createComment } from './comments'
// highlight-next-line
import { db } from 'api/src/lib/db'
import { db } from 'src/lib/db'
import type { StandardScenario } from './comments.scenarios'
Expand Down
4 changes: 2 additions & 2 deletions docs/versioned_docs/version-1.4/tutorial/chapter7/rbac.md
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ We'll need a test to go along with that functionality. How do we test `requireAu
```javascript title="api/src/services/comments/comments.test.js"
// highlight-next-line
import { comments, createComment, deleteComment } from './comments'
import { db } from 'api/src/lib/db'
import { db } from 'src/lib/db'
// highlight-next-line
import { AuthenticationError, ForbiddenError } from '@redwoodjs/graphql-server'

Expand Down Expand Up @@ -1143,7 +1143,7 @@ describe('comments', () => {
```ts title="api/src/services/comments/comments.test.ts"
// highlight-next-line
import { comments, createComment, deleteComment } from './comments'
import { db } from 'api/src/lib/db'
import { db } from 'src/lib/db'
// highlight-next-line
import { AuthenticationError, ForbiddenError } from '@redwoodjs/graphql-server'

Expand Down

0 comments on commit 5e3cb58

Please sign in to comment.