UNPKG

@bbashcode/lotide-flex

Version:

A clone of the lodash JavaScript library to practice creating various types of functions using JS.

11 lines (10 loc) 279 B
const assert = require("chai").assert; const head = require("../head"); describe("#head", () => { it("returns 1 for [1, 2, 3]", () => { assert.strictEqual(head([1, 2, 3]), 1); }); it("returns '5' for ['5']", () => { assert.strictEqual(head(['5']), '5'); }); });