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