index.js
below.index.js
itself. We'll only be running code in the caluclator.js
file.package.json
:test/calculator.js
we are calling the describe
function. This function segregates the different tests and formats the output according to what was called inside these functions.it
is the smallest piece of a unit test suite. The first argument to it
is a string that describes what this code is testing.to.equal
.multiply
function to the calculator and write a test for it