UNPKG

@s-awaken/lotide

Version:

Syrym's project for Lighthouse Labs Bootcamp

14 lines (10 loc) 283 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"); }); });