Test log2 function

use string to test NaN
This commit is contained in:
mike-000
2020-04-30 19:39:33 +01:00
committed by GitHub
parent f91e51c28b
commit 8415627731

View File

@@ -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');
});
});