编写一些测试并运行错误。阵列对我来说看起来是一样的,但显然不是。这是我得到的错误。任何想法如何解决它?期望数组为阵列
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);
});