@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 (16 loc) • 440 B
JavaScript
// test/assertArraysEqual.js
const assert = require('chai').assert;
const eqArrays = require('../eqArrays');
// TEST CODE
describe("assertArraysEqual.js test---", () => {
it("Should return True [1, 2, 3] === [1, 2, 3]", () => {
assert.isTrue(
eqArrays([1, 2, 3], [1, 2, 3])
);
});
it("Should return False [1, 2, 3] !== [1, 2, 1]", () => {
assert.isFalse(
eqArrays([1, 2, 3], [1, 2, 1])
);
});
});