Fix assert as array does not guarantee order
This commit is contained in:
parent
cbb3f6f98a
commit
3e02e36314
|
@ -467,7 +467,7 @@ describe('basic-querying', function() {
|
|||
return User.find({where: {seq: {inq: [0, 1, 100]}}})
|
||||
.then(function(result) {
|
||||
var seqsFound = result.map(function(r) { return r.seq; });
|
||||
should(seqsFound).eql([0, 1]);
|
||||
should(seqsFound.sort()).eql([0, 1]);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue