@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) • 430 B
JavaScript
// test/eqObjectsTest.js
const assert = require('chai').assert;
const eqObjects = require('../eqObjects');
// TEST CODE
describe("eqObjects.js test---", () => {
it("Should return True {a:1,b:2} === {a:1,b:2}", () => {
assert.isTrue(
eqObjects({a:1,b:2},{a:1,b:2})
);
});
it("Should return False {a:1,b:3} !== {a:1,b:2}", () => {
assert.isFalse(
eqObjects({a:1,b:3},{a:1,b:2})
);
});
});