From 6a412bd4af823884bb9c960ac89fdbc5ca55585a Mon Sep 17 00:00:00 2001 From: Ryan Tan Date: Fri, 5 Jan 2024 13:56:24 -0800 Subject: [PATCH] Update tests --- .../gremlin-javascript/test/unit/element-comparison-test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/unit/element-comparison-test.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/unit/element-comparison-test.js index 0db86135c6f..b069dfb5984 100644 --- a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/unit/element-comparison-test.js +++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/unit/element-comparison-test.js @@ -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; @@ -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); @@ -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); }); });