pactumjs / pactum

REST API Testing Tool for all levels in a Test Pyramid
https://pactumjs.github.io
MIT License
544 stars 52 forks source link

withJson accepts template name #333

Closed ASaiAnudeep closed 7 months ago

ASaiAnudeep commented 7 months ago

Is your feature request related to a problem? Please describe. Able to use withTemplate in spec

Describe the solution you'd like

await spec()
 .post('/api/users')
 .withJson('USERS:WORKEMAIL')
 .expectStatus(200)

Describe alternatives you've considered NA

Additional context NA