@gleefullychill/lotide
Version:
A library based off of lodash for a student project
11 lines (10 loc) • 373 B
JavaScript
const head = require('../head');
const assert = require('chai').assert;
describe("#head", () => {
it("returns 1 for [1, 2, 3]", () => {
assert.strictEqual(head([1, 2, 3]), 1);
});
it("return 'lighthouse' when given ['lighthouse', 'Lighthouse', 'Boothcamp']",() => {
assert.strictEqual(head(['lighthouse', 'Lighthouse', 'Boothcamp']), 'lighthouse');
});
});