Writing some tests and ran across an error. The array's seem the same to me, but apparently not. This is the error I'm getting. Any idea on what to do to fix it?
Expected Array [ 'A2T1511300361', 'A2T1511300362' ] to be Array [ 'A2T1511300361', 'A2T1511300362' ]
test.js
var should = require('should'),
io = require('socket.io-client'),
path = require('path'),
express = require(path.resolve('./config/lib/express')),
mongoose = require('mongoose'),
sinon = require('sinon')
...
client.on('printerList', function(list){
var tempArray = [];
tempArray.push('A2T1511300361');
tempArray.push('A2T1511300362');
console.log(tempArray);
list.should.equal(tempArray);
});