UNPKG

@bbashcode/lotide-flex

Version:

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

8 lines (7 loc) 235 B
const assert = require("chai").assert; const middle = require("../middle"); describe("testing middle function, it", ()=>{ it("should return [2, 3] for [1, 2, 3, 4]", ()=>{ assert.deepEqual(middle([1, 2, 3, 4]), [2,3]); }); });