Testing with Mocha: Array Comparison
The problem
I was writing a mocha test for an array comparison. Here is the test suite:
describe(‘Array comparison’, function () { ‘use strict’; it(‘should return true if two arrays have the same values’, function () { var myArray = [ ‘a’, ‘b’, ‘c’ ]...
victorleungtw.hashnode.dev1 min read