From f3a7d50d337f892bc21ddac66b6b459dde60fc71 Mon Sep 17 00:00:00 2001 From: Sebastian Kremiec Date: Tue, 14 Nov 2023 16:14:02 +0100 Subject: [PATCH] Add missing function parameter in spec.md --- docs/api/requests/spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/requests/spec.md b/docs/api/requests/spec.md index a8b3c995..815378e5 100644 --- a/docs/api/requests/spec.md +++ b/docs/api/requests/spec.md @@ -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)