From 87a8780cca1952e529553bc37e609fc0be6209e2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 21 Jun 2014 14:57:15 -0700 Subject: [PATCH] Fix failing tests in older IE related to iteration order. --- test/test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test.js b/test/test.js index 569afb102..bec53a70c 100644 --- a/test/test.js +++ b/test/test.js @@ -891,7 +891,7 @@ var object = new Foo; _.bindAll(object); - var actual = _.map(_.functions(object), function(methodName) { + var actual = _.map(_.functions(object).sort(), function(methodName) { return object[methodName].call({}); }); @@ -910,7 +910,7 @@ _.bindAll(object, 'a', 'b'); - var actual = _.map(_.functions(object), function(methodName) { + var actual = _.map(_.functions(object).sort(), function(methodName) { return object[methodName].call({}); }); @@ -931,7 +931,7 @@ _.bindAll(object, ['a', 'b'], ['c']); - var actual = _.map(_.functions(object), function(methodName) { + var actual = _.map(_.functions(object).sort(), function(methodName) { return object[methodName].call({}); }); @@ -952,7 +952,7 @@ _.bindAll(object, args); - var actual = _.map(_.functions(object), function(methodName) { + var actual = _.map(_.functions(object).sort(), function(methodName) { return object[methodName].call({}); }); @@ -11050,7 +11050,7 @@ QUnit.module('lodash methods'); (function() { - var allMethods = _.reject(_.functions(_), function(methodName) { + var allMethods = _.reject(_.functions(_).sort(), function(methodName) { return /^_/.test(methodName); });