mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Add _.orderBy test for string objects.
This commit is contained in:
@@ -13839,6 +13839,13 @@
|
||||
|
||||
assert.deepEqual(actual, expected);
|
||||
});
|
||||
|
||||
QUnit.test('should work with `orders` specified as string objects', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var actual = _.orderBy(objects, ['a'], [Object('desc')]);
|
||||
assert.deepEqual(actual, [objects[1], objects[3], objects[0], objects[2]]);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user