Skip to content

Commit e2775ce

Browse files
authored
docs(tests): correct Inertia example (#154)
1 parent cbc3f1f commit e2775ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/views-and-templates/inertia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ In addition to this, you can access the following properties on `ApiResponse` :
10461046
10471047
```ts
10481048
test('returns correct data', async ({ client }) => {
1049-
const { body } = await client.get('/home').withInertia()
1049+
const response = await client.get('/home').withInertia()
10501050

10511051
// 👇 The component returned by the server
10521052
console.log(response.inertiaComponent)

0 commit comments

Comments
 (0)