mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
@@ -28,10 +28,10 @@ describe('orderBy', function() {
|
||||
it('should sort by nested key in array format', () => {
|
||||
var actual = orderBy(
|
||||
nestedObj,
|
||||
[['address','zipCode'], ['address.streetName']],
|
||||
[['address', 'zipCode'], ['address.streetName']],
|
||||
['asc', 'desc'],
|
||||
);
|
||||
assert.deepStrictEqual(actual, [nestedObj[2], nestedObj[3], nestedObj[0], nestedObj[1]], nestedObj[4]);
|
||||
assert.deepStrictEqual(actual, [nestedObj[2], nestedObj[3], nestedObj[1], nestedObj[0], nestedObj[4]]);
|
||||
});
|
||||
|
||||
it('should sort by multiple properties by specified orders', function() {
|
||||
|
||||
Reference in New Issue
Block a user