import "mocha"; import { expect } from "chai"; import { is, fins, negpos } from "../helpers"; describe('Thunk factory "is.numeric"', () => { it("recognizes all numbers, except NaN", () => { const thunk = is.numeric(); const values = [ ...fins, Infinity ]; for (const value of negpos(values)) expect(thunk(value)).to.be.true; expect(thunk(NaN)).to.be.false; }); });