mocha expect array code example
Example 1: chai compare arrays
expect([1, 2, 3]).to.eql([1, 2, 3]) // don't use `equal`
Example 2: chai expect to be type array
expect([1, 2]).to.be.an('array');
expect([1, 2, 3]).to.eql([1, 2, 3]) // don't use `equal`
expect([1, 2]).to.be.an('array');