UNPKG

@suncraft/lotide

Version:

Lighthouse labs lodash remake by students.

16 lines (10 loc) 424 B
const assert = require('chai').assert; const tail = require('../tail'); describe("tail takes out the first index and leaves the rest", () => { it("returns [2, 3] for [1, 2, 3]", () => { assert.deepEqual(tail([1, 2, 3]), [2, 3]); }); it("returns ['Lighthouse', 'Labs'] for ['Yo Yo', 'Lighthouse', 'Labs']", () => { assert.deepEqual(tail(["Yo Yo", "Lighthouse", "Labs"]), ["Lighthouse", "Labs"]); }); });