Add _.orderBy test for string objects.

This commit is contained in:
John-David Dalton
2015-12-29 21:26:00 -06:00
parent db04398e49
commit bc7f2af2ce

View File

@@ -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]]);
});
}());
/*--------------------------------------------------------------------------*/