@samnarduzzi/lotide
Version:
Lotide proejct containf files, test code files, index, and descriptions for all files
18 lines (14 loc) • 494 B
JavaScript
const assert = require('chai').assert;
const tail = require('../tail');
describe("#tail", () => {
it("returns ['Lighthouse', 'Labs'] from ['Hello', 'Lighthouse', 'Labs']", () => {
assert.deepEqual(tail(["Hello", "Lighthouse", "Labs"]), ["Lighthouse", "Labs"]);
});
it("returns [6, 7] from [5,6,7]", () => {
assert.deepEqual(tail([5, 6, 7]), [6, 7]);
});
it("returns empty from [1]", () => {
assert.deepEqual(tail([1]), []);
});
});
// deepEqual when comparing arrays