UNPKG

jiminy

Version:

Library for inferring which type of data visualization can be rendered from a JSON dataset, and with which data field(s)

19 lines (13 loc) 380 B
import chai from 'chai'; import utils from 'utils'; const expect = chai.expect; describe('utils', () => { describe('#isNaN', () => { it('should return true if argument is NaN', () => { expect(utils.isNaN(NaN)).to.be.true; }); it('should return false if argument is a string', () => { expect(utils.isNaN('Vizzuality')).to.be.false; }); }); });