diff --git a/test/expect-0.2.0-ol3/expect.js b/test/expect-0.2.0-ol3/expect.js index 1f4f14c7c4..b3b748c085 100644 --- a/test/expect-0.2.0-ol3/expect.js +++ b/test/expect-0.2.0-ol3/expect.js @@ -1012,7 +1012,8 @@ // 7.3. Other pairs that do not both pass typeof value == "object", // equivalence is determined by ==. } else if (typeof actual != 'object' && typeof expected != 'object') { - if (isNaN(actual) && isNaN(expected)) { + if (typeof actual == 'number' && isNaN(actual) && + typeof expected == 'number' && isNaN(expected)) { return true; } else { return actual == expected;