From 8415627731658ebec1d5729f1687ab2d733df3bc Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Thu, 30 Apr 2020 19:39:33 +0100 Subject: [PATCH] Test log2 function use string to test NaN --- test/spec/ol/math.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/ol/math.test.js b/test/spec/ol/math.test.js index 60f0ba9d14..96a722f8bd 100644 --- a/test/spec/ol/math.test.js +++ b/test/spec/ol/math.test.js @@ -75,7 +75,7 @@ describe('ol.math.log2', function () { }); it('returns the correct value at -1', function () { - expect(log2(-1)).to.eql(NaN); + expect(log2(-1).toString()).to.eql('NaN'); }); });