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
Unit test case for basicget.js #234
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,234 @@ | |||
const { buildMQDetails, ccdtCheck, initialise, connx, open, close, disconnect, getMessage } = require('../basicget'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README needs updating with instructions on how to run the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package.json will need updating to allow for npm test
command
|
||
it('Should perform MQGET', async () => { | ||
for (let i = 0; i < envConfigLength; i++) { | ||
await buildMQDetails(MQDetails, credentials, i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a copy and paste of the put logic. Instead, just run basicput
, then test that the get functions run.
|
Created a Unit-test file for the
basicget.js
file, using theChai
assertion library.