Small NodeJS code with mocha/chai to test replacing each char in a string with the next char in alphabet
Steps to install and execute the tests:
-
Install node.js
npm install --save -dev
-
Initialize project
npm init
-
Install mocha and chai dependencies
npm install mocha --save -include=dev
npm install chai --save -include=dev
- Modify package.json
"scripts": {
"test": "mocha"
}
- To execute the test cases, the following instruction is executed in terminal:
npm test