Merge pull request #1449 from strongloop/fix/array-sort

Sort arrays before comparing
This commit is contained in:
Sakib Hasan 2017-08-02 11:14:22 -04:00 committed by GitHub
commit edf93fca17
1 changed files with 1 additions and 1 deletions

View File

@ -956,7 +956,7 @@ describe('relations', function() {
records.length.should.eql(2);
const expected = ['a:test', 'z:test'];
const actual = records.map(function(r) { return r.name + ':' + r.realm; });
actual.should.eql(expected);
actual.sort().should.eql(expected.sort());
done();
});
}