From 20ba0bd1dcadb79389860fd9acddce6fa84d0ff4 Mon Sep 17 00:00:00 2001 From: jdalton Date: Sat, 18 Apr 2015 09:31:30 -0700 Subject: [PATCH] Fix `_.uniqueId` test to properly compare values. --- test/test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 37a2cc76e..8bcf80dbf 100644 --- a/test/test.js +++ b/test/test.js @@ -13500,14 +13500,16 @@ test('should use a zeroed `_.uniqueId` counter', 3, function() { if (!isModularize) { - var oldId = (_.uniqueId(), _.uniqueId()), + _.times(2, _.uniqueId); + + var oldId = Number(_.uniqueId()), lodash = _.runInContext(); - ok(_.uniqueId() > oldId, '_.uniqueId() > oldId'); + ok(_.uniqueId() > oldId); var id = lodash.uniqueId(); strictEqual(id, '1'); - ok(id < oldId, 'id < oldId'); + ok(id < oldId); } else { skipTest(3);