import "mocha"; import { expect } from "chai"; import { is, objects, numbers, funcs } from "../helpers"; describe('Thunk "is._function"', () => { it("recognizes functions", () => { const valid = funcs; const invalid: any[] = [ ...numbers, ...objects ]; for (const value of valid) expect(is._function(value)).to.be.true; for (const value of invalid) expect(is._function(value)).to.be.false; }); });