☕ Mocha and Chai 🍵
Run tests before you deploy. This sample project shows you how you can hook-up Mocha with Chai to run tests before deployment. You engage in test driven development (TDD
) by writing your unit tests before you write your functions. View your test results in the Logs
.
We test:
- the built-in
Array.indexOf
function✔️ - a client-side module function called
yesOrNo
✔️ - a Remote REST API which returns a JSON object
✔️