diff --git a/chai-immutable.js b/chai-immutable.js index 0ac5d8e..3f4b28d 100644 --- a/chai-immutable.js +++ b/chai-immutable.js @@ -83,6 +83,7 @@ * @name equal * @alias equals * @alias eq + * @alias eql * @alias deep.equal * @param {Collection} value * @api public @@ -107,6 +108,7 @@ Assertion.overwriteMethod('equal', assertCollectionEqual); Assertion.overwriteMethod('equals', assertCollectionEqual); Assertion.overwriteMethod('eq', assertCollectionEqual); + Assertion.overwriteMethod('eql', assertCollectionEqual); /** * ### .include(value) diff --git a/test/test.js b/test/test.js index 147b741..d55970c 100644 --- a/test/test.js +++ b/test/test.js @@ -62,6 +62,8 @@ describe('chai-immutable (' + typeEnv + ')', function () { expect(list3).to.not.equals(new List()); expect(list3).to.eq(List.of(1, 2, 3)); expect(list3).to.not.eq(new List()); + expect(list3).to.eql(List.of(1, 2, 3)); + expect(list3).to.not.eql(new List()); expect(list3).to.deep.equal(List.of(1, 2, 3)); expect(list3).to.not.deep.equal(new List()); });