Skip to content

Commit

Permalink
Add missing function parameter in spec.md
Browse files Browse the repository at this point in the history
  • Loading branch information
skremiec authored Nov 14, 2023
1 parent 8945fa5 commit f3a7d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/requests/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ await spec()
```js
const { spec, handler } = require('pactum');

handler.addSpecHandler('get user', () => {
handler.addSpecHandler('get user', (ctx) => {
const { spec, data } = ctx;
spec.get('https://reqres.in/api/users/{id}');
spec.withPathParams('id', data || 1)
Expand Down

0 comments on commit f3a7d50

Please sign in to comment.