From b296e1b34040b2c633092547563c68dcfe198a88 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 1 Feb 2013 01:25:10 -0800 Subject: [PATCH] Add `_.isNumber` unit test for Firefox `[xpconnect wrapped native prototype]` issues. Former-commit-id: d81b0bb7807139d14796c2a952294d1fd581f73a --- test/test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test.js b/test/test.js index b845f2a7b..3af460237 100644 --- a/test/test.js +++ b/test/test.js @@ -1170,6 +1170,16 @@ /*--------------------------------------------------------------------------*/ + QUnit.module('lodash.isNumber'); + + (function() { + test('should avoid `[xpconnect wrapped native prototype]` in Firefox', function() { + strictEqual(_.isNumber(+"2"), true); + }); + }()); + + /*--------------------------------------------------------------------------*/ + QUnit.module('lodash.isPlainObject'); (function() {