openapi-to-postman
openapi-to-postman copied to clipboard
Add unit tests for the functions in schemaUtils.js
Add unit tests for the following:
checkPathVariables
checkQueryParams
checkRequestHeaders
checkRequestBody
checkResponses
Hi, @umeshp7 can I work on this issue, also can you provide some more detail about the unit tests to be added.
Sure @sugam45. You could start by understanding what the above-mentioned functions do, determine all possible types of inputs and outputs (test-cases) each of them can have and then start writing unit tests for those. You can refer to the existing unit tests for this.
@umeshp7 taking this up, PR underway soon
@umeshp7 is this issue still available?
@vhawk19 WIP PR is open at https://github.com/postmanlabs/openapi-to-postman/pull/159, You can create separate PR or use that as reference PR for contribution.