From bc7f2af2cecc435a97bcc9894f2cdf2cd06aa9d5 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 29 Dec 2015 21:26:00 -0600 Subject: [PATCH] Add `_.orderBy` test for string objects. --- test/test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test.js b/test/test.js index b2e6319f5..a3b629fa8 100644 --- a/test/test.js +++ b/test/test.js @@ -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]]); + }); }()); /*--------------------------------------------------------------------------*/