@mattseligman/lotide
Version:
Lotide is a mini clone of the Lodash Library to practice crating a personal npm package. It's like lodash, but without all that extra stuff. Just the things you need to start your project.
20 lines (15 loc) • 564 B
JavaScript
// test/eqArrays.js
const assert = require('chai').assert;
const eqArrays = require('../eqArrays');
// TEST CODE
describe("eqArrays.js test---", () => {
it("Should return True [1,2,3] === [1,2,3]", () => {
assert.isTrue(eqArrays([1, 2, 3], [1, 2, 3]));
});
it("Should return True (Recursive test) [1, [1,[2,3]], [3]] === [1, [1,[2,3]], [3]]", () => {
assert.isTrue(eqArrays([1, [1,[2,3]], [3]], [1, [1,[2,3]], [3]]));
});
it("Should return False [1,2,2] === [1,2,3]", () => {
assert.isFalse(eqArrays([1, 2, 2], [1, 2, 3]));
});
});