Merge pull request #1367 from strongloop/fix_testcase_order
Fix assert as array does not guarantee order
This commit is contained in:
commit
4ebc421c11
|
@ -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