A lightweight assert-equals function for use in inline testing.
- Save
assert-equals.js
to your project directory. - Use
const assertEquals = require('./[pathToFile]/assert-equals')
to import the function. - Test whether two values/objects are equal using
assertEquals(valueA, valueB)
.