Skip to content

Commit 195a8b9

Browse files
committed
📘 doc(treaty): unit test
1 parent b753699 commit 195a8b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/eden/treaty/unit-test.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ import { Elysia } from 'elysia'
2626
import { treaty } from '@elysiajs/eden'
2727

2828
const app = new Elysia().get('/hello', () => 'hi')
29-
3029
const api = treaty(app)
3130

3231
describe('Elysia', () => {
3332
it('return a response', async () => {
34-
const { data, error } = await api.hello.get()
33+
const { data } = await api.hello.get()
3534

36-
expect(response).toBe('hi')
35+
expect(data).toBe('hi')
3736
})
3837
})
3938
```

0 commit comments

Comments
 (0)