Fix assert as array does not guarantee order

This commit is contained in:
Candy 2017-05-05 10:21:22 -04:00
parent cbb3f6f98a
commit 3e02e36314
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
});
});