Sort arrays before testing
Sorting the array so the ordering is the same
This commit is contained in:
parent
dcf83dc6af
commit
aec1179a30
|
@ -956,7 +956,7 @@ describe('relations', function() {
|
||||||
records.length.should.eql(2);
|
records.length.should.eql(2);
|
||||||
const expected = ['a:test', 'z:test'];
|
const expected = ['a:test', 'z:test'];
|
||||||
const actual = records.map(function(r) { return r.name + ':' + r.realm; });
|
const actual = records.map(function(r) { return r.name + ':' + r.realm; });
|
||||||
actual.should.eql(expected);
|
actual.sort().should.eql(expected.sort());
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue