mq-dev-patterns
mq-dev-patterns copied to clipboard
Unit test case for basicget.js
Created a Unit-test file for the basicget.js file, using the Chai assertion library.
- Updated the
MQGETtest by adding anexecstatement to first execute thebasicput.jsfile, following which thegetMessagefunction is called - Updated a few functions which tested the resolution or rejection of promises, by using the
chai-as-promisedlibrary, that deals with testing functions that return a Promise. - Added a
READMEfor the test directory, which contains the information needed to run these testcases - Updated the
basicget.jswith the requiredmodule.exports.