Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests to verify request data fields resolve correctly #16

Open
deepakpathania-zz opened this issue Oct 8, 2019 · 0 comments
Open
Labels
good first issue Good for newcomers tests

Comments

@deepakpathania-zz
Copy link
Owner

Add a bunch of unit tests to UtilService.test.js to ensure that different params when sent in the requestObject resolves to proper outbound requests.

One test per different field should be added:

  • query params.
  • headers
  • body

nock should be used to ensure the outbound call matches the expectation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers tests
Projects
None yet
Development

No branches or pull requests

1 participant