diff --git a/spec/helpers/spec-helper.js b/spec/helpers/spec-helper.js
index <HASH>..<HASH> 100644
--- a/spec/helpers/spec-helper.js
+++ b/spec/helpers/spec-helper.js
@@ -63,7 +63,9 @@ global.expect = function(e) {
          */

         toBeEqualish: function(a) {

 

-            if (typeof(e) == 'number')

+            if (typeof(e) == 'number'){

+                if(isNaN(e) !== isNaN(a))

+                    expected(e, "to be equalish to", a);

                 if(Math.abs(e - a) >= EPSILON)

                     expected(e, "to be equalish to", a);
fix test toBeEqualish bug when has NaN value