Skip to content

Commit 42bbfd6

Browse files
committed
fix graph tests
1 parent bf0b388 commit 42bbfd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/graph/lib/graph.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('Graph', () => {
6868

6969
// check with and without metadata cache
7070
for (let i = 0; i < 2; i++) {
71-
const { data } = await graph.query('CREATE ()-[edge :edge]->() RETURN edge');
71+
const { data } = await graph.query<any>('CREATE ()-[edge :edge]->() RETURN edge');
7272
assert.ok(Array.isArray(data));
7373
assert.equal(data.length, 1);
7474
assert.equal(typeof data[0].edge.id, 'number');
@@ -85,7 +85,7 @@ describe('Graph', () => {
8585

8686
// check with and without metadata cache
8787
for (let i = 0; i < 2; i++) {
88-
const { data } = await graph.query('CREATE (node :node { p: 0 }) RETURN node');
88+
const { data } = await graph.query<any>('CREATE (node :node { p: 0 }) RETURN node');
8989
assert.ok(Array.isArray(data));
9090
assert.equal(data.length, 1);
9191
assert.equal(typeof data[0].node.id, 'number');
@@ -98,7 +98,7 @@ describe('Graph', () => {
9898
const graph = new Graph(client as any, 'graph'),
9999
[, { data }] = await Promise.all([
100100
await graph.query('CREATE ()-[:edge]->()'),
101-
await graph.roQuery('MATCH path = ()-[:edge]->() RETURN path')
101+
await graph.roQuery<any>('MATCH path = ()-[:edge]->() RETURN path')
102102
]);
103103

104104
assert.ok(Array.isArray(data));

0 commit comments

Comments
 (0)