Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryn5 committed Jan 5, 2024
1 parent 648d00f commit 6a412bd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ describe('elements', function () {

it('should pass with same id, different values', function () {
expect(deepEqual(v1, v2, opt)).to.be.true;
expect([v1]).to.have.deep.ordered.members([v2]);
expect(deepEqual(v3, e1, opt)).to.be.true;
expect(deepEqual(e2, e3, opt)).to.be.true;
expect(deepEqual(e3, vp1, opt)).to.be.true;
Expand Down Expand Up @@ -125,7 +124,7 @@ describe('arrays', function () {
const a12 = [a10]

it('unordered nested', function () {
expect(a6).to.have.deep.members(a7);
expect(a6).to.have.not.deep.members(a7); // nested arrays ordered differently don't pass as the same item
expect(a6).to.not.have.deep.members(a8);
expect(a9).to.have.deep.members(a10);
expect(a11).to.have.deep.members(a12);
Expand Down Expand Up @@ -173,7 +172,7 @@ describe('map', function () {
it('ordered', function () {
expect(m1).to.have.deep.ordered.members(m1);
expect(m1).to.not.have.deep.ordered.members(m2);
expect(m1).to.not.have.deep.ordered.members(m3);
expect(m1).to.have.deep.ordered.members(m3); // map entries can be unordered
expect(m1).to.not.have.deep.ordered.members(m4);
});
});
Expand Down

0 comments on commit 6a412bd

Please sign in to comment.