mq-dev-patterns icon indicating copy to clipboard operation
mq-dev-patterns copied to clipboard

Unit test case for basicget.js

Open tanaysingh3484 opened this issue 1 year ago • 1 comments

Created a Unit-test file for the basicget.js file, using the Chai assertion library.

tanaysingh3484 avatar Apr 19 '24 09:04 tanaysingh3484

  • Updated the MQGET test by adding an exec statement to first execute the basicput.js file, following which the getMessage function is called
  • Updated a few functions which tested the resolution or rejection of promises, by using the chai-as-promised library, that deals with testing functions that return a Promise.
  • Added a README for the test directory, which contains the information needed to run these testcases
  • Updated the basicget.js with the required module.exports.

tanaysingh3484 avatar May 02 '24 08:05 tanaysingh3484