These tests were created for testing atm objects from ST1 task (introduction to full stack, SH++).
The name of the object, all properties and methods should be as they were in the task, without any changes.
Also ATM object should contain user and admin data objects, given in the task. It may contain other user data objects.
There should be logs array containing logs:
logs: []
Do the following actions to run the tests.
1 Replace atm-template.js file with your own.
- Insert following code in the end of your atm-template.js:
module.exports = { ATM, };
- Install needed js scripts (mocha, etc.) with the command:
npm install
- Run the tests with the command:
npm test test.js