Skip to content

Commit 331103e

Browse files
committed
Fix graph types serialization verification issue
1 parent 711e123 commit 331103e

18 files changed

+9
-36
lines changed

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v1.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ exports[`#unit BoltProtocolV1 .packable() should pack not pack graph types (Node
44

55
exports[`#unit BoltProtocolV1 .packable() should pack not pack graph types (Path) 1`] = `"It is not allowed to pass paths in query parameters, given: [object Object]"`;
66

7-
exports[`#unit BoltProtocolV1 .packable() should pack not pack graph types (PathSegment) 1`] = `"Cannot read properties of null (reading 'writeUInt8')"`;
8-
97
exports[`#unit BoltProtocolV1 .packable() should pack not pack graph types (Relationship) 1`] = `"It is not allowed to pass relationships in query parameters, given: (e)-[:a {b:\\"c\\"}]->(f)"`;
108

119
exports[`#unit BoltProtocolV1 .packable() should pack not pack graph types (UnboundRelationship) 1`] = `"It is not allowed to pass unbound relationships in query parameters, given: -[:a {b:\\"c\\"}]->"`;

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v2.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ exports[`#unit BoltProtocolV2 .packable() should pack not pack graph types (Node
44

55
exports[`#unit BoltProtocolV2 .packable() should pack not pack graph types (Path) 1`] = `"It is not allowed to pass paths in query parameters, given: [object Object]"`;
66

7-
exports[`#unit BoltProtocolV2 .packable() should pack not pack graph types (PathSegment) 1`] = `"Cannot read properties of null (reading 'writeUInt8')"`;
8-
97
exports[`#unit BoltProtocolV2 .packable() should pack not pack graph types (Relationship) 1`] = `"It is not allowed to pass relationships in query parameters, given: (e)-[:a {b:\\"c\\"}]->(f)"`;
108

119
exports[`#unit BoltProtocolV2 .packable() should pack not pack graph types (UnboundRelationship) 1`] = `"It is not allowed to pass unbound relationships in query parameters, given: -[:a {b:\\"c\\"}]->"`;

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v3.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ exports[`#unit BoltProtocolV3 .packable() should pack not pack graph types (Node
44

55
exports[`#unit BoltProtocolV3 .packable() should pack not pack graph types (Path) 1`] = `"It is not allowed to pass paths in query parameters, given: [object Object]"`;
66

7-
exports[`#unit BoltProtocolV3 .packable() should pack not pack graph types (PathSegment) 1`] = `"Cannot read properties of null (reading 'writeUInt8')"`;
8-
97
exports[`#unit BoltProtocolV3 .packable() should pack not pack graph types (Relationship) 1`] = `"It is not allowed to pass relationships in query parameters, given: (e)-[:a {b:\\"c\\"}]->(f)"`;
108

119
exports[`#unit BoltProtocolV3 .packable() should pack not pack graph types (UnboundRelationship) 1`] = `"It is not allowed to pass unbound relationships in query parameters, given: -[:a {b:\\"c\\"}]->"`;

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v4x0.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ exports[`#unit BoltProtocolV4x0 .packable() should pack not pack graph types (No
44

55
exports[`#unit BoltProtocolV4x0 .packable() should pack not pack graph types (Path) 1`] = `"It is not allowed to pass paths in query parameters, given: [object Object]"`;
66

7-
exports[`#unit BoltProtocolV4x0 .packable() should pack not pack graph types (PathSegment) 1`] = `"Cannot read properties of null (reading 'writeUInt8')"`;
8-
97
exports[`#unit BoltProtocolV4x0 .packable() should pack not pack graph types (Relationship) 1`] = `"It is not allowed to pass relationships in query parameters, given: (e)-[:a {b:\\"c\\"}]->(f)"`;
108

119
exports[`#unit BoltProtocolV4x0 .packable() should pack not pack graph types (UnboundRelationship) 1`] = `"It is not allowed to pass unbound relationships in query parameters, given: -[:a {b:\\"c\\"}]->"`;

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v4x1.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ exports[`#unit BoltProtocolV4x1 .packable() should pack not pack graph types (No
44

55
exports[`#unit BoltProtocolV4x1 .packable() should pack not pack graph types (Path) 1`] = `"It is not allowed to pass paths in query parameters, given: [object Object]"`;
66

7-
exports[`#unit BoltProtocolV4x1 .packable() should pack not pack graph types (PathSegment) 1`] = `"Cannot read properties of null (reading 'writeUInt8')"`;
8-
97
exports[`#unit BoltProtocolV4x1 .packable() should pack not pack graph types (Relationship) 1`] = `"It is not allowed to pass relationships in query parameters, given: (e)-[:a {b:\\"c\\"}]->(f)"`;
108

119
exports[`#unit BoltProtocolV4x1 .packable() should pack not pack graph types (UnboundRelationship) 1`] = `"It is not allowed to pass unbound relationships in query parameters, given: -[:a {b:\\"c\\"}]->"`;

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v4x2.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ exports[`#unit BoltProtocolV4x2 .packable() should pack not pack graph types (No
44

55
exports[`#unit BoltProtocolV4x2 .packable() should pack not pack graph types (Path) 1`] = `"It is not allowed to pass paths in query parameters, given: [object Object]"`;
66

7-
exports[`#unit BoltProtocolV4x2 .packable() should pack not pack graph types (PathSegment) 1`] = `"Cannot read properties of null (reading 'writeUInt8')"`;
8-
97
exports[`#unit BoltProtocolV4x2 .packable() should pack not pack graph types (Relationship) 1`] = `"It is not allowed to pass relationships in query parameters, given: (e)-[:a {b:\\"c\\"}]->(f)"`;
108

119
exports[`#unit BoltProtocolV4x2 .packable() should pack not pack graph types (UnboundRelationship) 1`] = `"It is not allowed to pass unbound relationships in query parameters, given: -[:a {b:\\"c\\"}]->"`;

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v4x3.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ exports[`#unit BoltProtocolV4x3 .packable() should pack not pack graph types (No
44

55
exports[`#unit BoltProtocolV4x3 .packable() should pack not pack graph types (Path) 1`] = `"It is not allowed to pass paths in query parameters, given: [object Object]"`;
66

7-
exports[`#unit BoltProtocolV4x3 .packable() should pack not pack graph types (PathSegment) 1`] = `"Cannot read properties of null (reading 'writeUInt8')"`;
8-
97
exports[`#unit BoltProtocolV4x3 .packable() should pack not pack graph types (Relationship) 1`] = `"It is not allowed to pass relationships in query parameters, given: (e)-[:a {b:\\"c\\"}]->(f)"`;
108

119
exports[`#unit BoltProtocolV4x3 .packable() should pack not pack graph types (UnboundRelationship) 1`] = `"It is not allowed to pass unbound relationships in query parameters, given: -[:a {b:\\"c\\"}]->"`;

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v4x4.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ exports[`#unit BoltProtocolV4x4 .packable() should pack not pack graph types (No
44

55
exports[`#unit BoltProtocolV4x4 .packable() should pack not pack graph types (Path) 1`] = `"It is not allowed to pass paths in query parameters, given: [object Object]"`;
66

7-
exports[`#unit BoltProtocolV4x4 .packable() should pack not pack graph types (PathSegment) 1`] = `"Cannot read properties of null (reading 'writeUInt8')"`;
8-
97
exports[`#unit BoltProtocolV4x4 .packable() should pack not pack graph types (Relationship) 1`] = `"It is not allowed to pass relationships in query parameters, given: (e)-[:a {b:\\"c\\"}]->(f)"`;
108

119
exports[`#unit BoltProtocolV4x4 .packable() should pack not pack graph types (UnboundRelationship) 1`] = `"It is not allowed to pass unbound relationships in query parameters, given: -[:a {b:\\"c\\"}]->"`;

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v5x0.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ exports[`#unit BoltProtocolV5x0 .packable() should pack not pack graph types (No
44

55
exports[`#unit BoltProtocolV5x0 .packable() should pack not pack graph types (Path) 1`] = `"It is not allowed to pass paths in query parameters, given: [object Object]"`;
66

7-
exports[`#unit BoltProtocolV5x0 .packable() should pack not pack graph types (PathSegment) 1`] = `"Cannot read properties of null (reading 'writeUInt8')"`;
8-
97
exports[`#unit BoltProtocolV5x0 .packable() should pack not pack graph types (Relationship) 1`] = `"It is not allowed to pass relationships in query parameters, given: (e)-[:a {b:\\"c\\"}]->(f)"`;
108

119
exports[`#unit BoltProtocolV5x0 .packable() should pack not pack graph types (UnboundRelationship) 1`] = `"It is not allowed to pass unbound relationships in query parameters, given: -[:a {b:\\"c\\"}]->"`;

packages/bolt-connection/test/bolt/bolt-protocol-v1.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,7 @@ describe('#unit BoltProtocolV1', () => {
382382
['Node', new Node(1, ['a'], { a: 'b' }, 'c')],
383383
['Relationship', new Relationship(1, 2, 3, 'a', { b: 'c' }, 'd', 'e', 'f')],
384384
['UnboundRelationship', new UnboundRelationship(1, 'a', { b: 'c' }, '1')],
385-
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])],
386-
['PathSegment', new PathSegment(new Node(1, [], {}), new Relationship(1, 1, 1, '', {}), new Node(1, [], {}))]
385+
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])]
387386
])('should pack not pack graph types (%s)', (_, graphType) => {
388387
const protocol = new BoltProtocolV1(
389388
new utils.MessageRecordingConnection(),

packages/bolt-connection/test/bolt/bolt-protocol-v2.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ describe('#unit BoltProtocolV2', () => {
135135
['Node', new Node(1, ['a'], { a: 'b' }, 'c')],
136136
['Relationship', new Relationship(1, 2, 3, 'a', { b: 'c' }, 'd', 'e', 'f')],
137137
['UnboundRelationship', new UnboundRelationship(1, 'a', { b: 'c' }, '1')],
138-
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])],
139-
['PathSegment', new PathSegment(new Node(1, [], {}), new Relationship(1, 1, 1, '', {}), new Node(1, [], {}))]
138+
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])]
140139
])('should pack not pack graph types (%s)', (_, graphType) => {
141140
const protocol = new BoltProtocolV2(
142141
new utils.MessageRecordingConnection(),

packages/bolt-connection/test/bolt/bolt-protocol-v3.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,7 @@ describe('#unit BoltProtocolV3', () => {
340340
['Node', new Node(1, ['a'], { a: 'b' }, 'c')],
341341
['Relationship', new Relationship(1, 2, 3, 'a', { b: 'c' }, 'd', 'e', 'f')],
342342
['UnboundRelationship', new UnboundRelationship(1, 'a', { b: 'c' }, '1')],
343-
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])],
344-
['PathSegment', new PathSegment(new Node(1, [], {}), new Relationship(1, 1, 1, '', {}), new Node(1, [], {}))]
343+
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])]
345344
])('should pack not pack graph types (%s)', (_, graphType) => {
346345
const protocol = new BoltProtocolV3(
347346
new utils.MessageRecordingConnection(),

packages/bolt-connection/test/bolt/bolt-protocol-v4x0.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@ describe('#unit BoltProtocolV4x0', () => {
258258
['Node', new Node(1, ['a'], { a: 'b' }, 'c')],
259259
['Relationship', new Relationship(1, 2, 3, 'a', { b: 'c' }, 'd', 'e', 'f')],
260260
['UnboundRelationship', new UnboundRelationship(1, 'a', { b: 'c' }, '1')],
261-
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])],
262-
['PathSegment', new PathSegment(new Node(1, [], {}), new Relationship(1, 1, 1, '', {}), new Node(1, [], {}))]
261+
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])]
263262
])('should pack not pack graph types (%s)', (_, graphType) => {
264263
const protocol = new BoltProtocolV4x0(
265264
new utils.MessageRecordingConnection(),

packages/bolt-connection/test/bolt/bolt-protocol-v4x1.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ describe('#unit BoltProtocolV4x1', () => {
132132
['Node', new Node(1, ['a'], { a: 'b' }, 'c')],
133133
['Relationship', new Relationship(1, 2, 3, 'a', { b: 'c' }, 'd', 'e', 'f')],
134134
['UnboundRelationship', new UnboundRelationship(1, 'a', { b: 'c' }, '1')],
135-
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])],
136-
['PathSegment', new PathSegment(new Node(1, [], {}), new Relationship(1, 1, 1, '', {}), new Node(1, [], {}))]
135+
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])]
137136
])('should pack not pack graph types (%s)', (_, graphType) => {
138137
const protocol = new BoltProtocolV4x1(
139138
new utils.MessageRecordingConnection(),

packages/bolt-connection/test/bolt/bolt-protocol-v4x2.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ describe('#unit BoltProtocolV4x2', () => {
131131
['Node', new Node(1, ['a'], { a: 'b' }, 'c')],
132132
['Relationship', new Relationship(1, 2, 3, 'a', { b: 'c' }, 'd', 'e', 'f')],
133133
['UnboundRelationship', new UnboundRelationship(1, 'a', { b: 'c' }, '1')],
134-
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])],
135-
['PathSegment', new PathSegment(new Node(1, [], {}), new Relationship(1, 1, 1, '', {}), new Node(1, [], {}))]
134+
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])]
136135
])('should pack not pack graph types (%s)', (_, graphType) => {
137136
const protocol = new BoltProtocolV4x2(
138137
new utils.MessageRecordingConnection(),

packages/bolt-connection/test/bolt/bolt-protocol-v4x3.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ describe('#unit BoltProtocolV4x3', () => {
343343
['Node', new Node(1, ['a'], { a: 'b' }, 'c')],
344344
['Relationship', new Relationship(1, 2, 3, 'a', { b: 'c' }, 'd', 'e', 'f')],
345345
['UnboundRelationship', new UnboundRelationship(1, 'a', { b: 'c' }, '1')],
346-
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])],
347-
['PathSegment', new PathSegment(new Node(1, [], {}), new Relationship(1, 1, 1, '', {}), new Node(1, [], {}))]
346+
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])]
348347
])('should pack not pack graph types (%s)', (_, graphType) => {
349348
const protocol = new BoltProtocolV4x3(
350349
new utils.MessageRecordingConnection(),

packages/bolt-connection/test/bolt/bolt-protocol-v4x4.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,7 @@ describe('#unit BoltProtocolV4x4', () => {
376376
['Node', new Node(1, ['a'], { a: 'b' }, 'c')],
377377
['Relationship', new Relationship(1, 2, 3, 'a', { b: 'c' }, 'd', 'e', 'f')],
378378
['UnboundRelationship', new UnboundRelationship(1, 'a', { b: 'c' }, '1')],
379-
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])],
380-
['PathSegment', new PathSegment(new Node(1, [], {}), new Relationship(1, 1, 1, '', {}), new Node(1, [], {}))]
379+
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])]
381380
])('should pack not pack graph types (%s)', (_, graphType) => {
382381
const protocol = new BoltProtocolV4x4(
383382
new utils.MessageRecordingConnection(),

packages/bolt-connection/test/bolt/bolt-protocol-v5x0.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,7 @@ describe('#unit BoltProtocolV5x0', () => {
388388
['Node', new Node(1, ['a'], { a: 'b' }, 'c')],
389389
['Relationship', new Relationship(1, 2, 3, 'a', { b: 'c' }, 'd', 'e', 'f')],
390390
['UnboundRelationship', new UnboundRelationship(1, 'a', { b: 'c' }, '1')],
391-
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])],
392-
['PathSegment', new PathSegment(new Node(1, [], {}), new Relationship(1, 1, 1, '', {}), new Node(1, [], {}))]
391+
['Path', new Path(new Node(1, [], {}), new Node(2, [], {}), [])]
393392
])('should pack not pack graph types (%s)', (_, graphType) => {
394393
const protocol = new BoltProtocolV5x0(
395394
new utils.MessageRecordingConnection(),

0 commit comments

Comments
 (0)