Skip to content

Commit

Permalink
Merge pull request #43 from skremiec/patch-1
Browse files Browse the repository at this point in the history
Add missing function parameter in spec.md
  • Loading branch information
leelaprasadv committed Nov 14, 2023
2 parents 8945fa5 + f3a7d50 commit 3fc0c80
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 3fc0c80

Please sign in to comment.