assert library includes more than the four methods covered so far. You can find them all in the Node.js documentation.
Many of the methods can be implemented using other methods, like using
assert.ok(1 == 1) to implement
assert.equal(1,1). Although this can be used for many types of tests, more descriptive functions like
assert.deepEqual allow us to be more expressive: the expected functionality of the implementation code is clear to anyone reading your tests.
Using the link above, go to the
assert documentation and find a more expressive way to implement
assert.ok(1 !== 2).