pactumjs / pactum

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

feat(src/models/Spec.js): add withBearerToken method #257

Closed baabouj closed 1 year ago

baabouj commented 1 year ago

add withBearerToken method to Spec to set the bearer token in the request

ASaiAnudeep commented 1 year ago

@baabouj can you add few tests to cover your new code.

baabouj commented 1 year ago

Hi @ASaiAnudeep 👋 I will add the tests and I will add the docs too once this is merged 👍

ASaiAnudeep commented 1 year ago

Hi @ASaiAnudeep 👋 I will add the tests and I will add the docs too once this is merged 👍

Great. Can you please add one positive test case under component folder. You can take a reference from here - https://github.com/pactumjs/pactum/blob/master/test/component/withQueryParams.spec.js

baabouj commented 1 year ago

Hi @ASaiAnudeep 👋 I will add the tests and I will add the docs too once this is merged 👍

Great. Can you please add one positive test case under component folder. You can take a reference from here - https://github.com/pactumjs/pactum/blob/master/test/component/withQueryParams.spec.js

Yeah of course 😄