Skip to content

Commit bf4e3ab

Browse files
committed
fix testests
1 parent 11e220c commit bf4e3ab

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

infrastructure/evault-core/src/core/db/db.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Driver } from "neo4j-driver";
1+
import neo4j, { type Driver } from "neo4j-driver";
22
import { W3IDBuilder } from "w3id";
33
import { deserializeValue, serializeValue } from "./schema";
44
import type {
@@ -999,11 +999,11 @@ export class DbService {
999999
cursor
10001000
? {
10011001
eName,
1002-
limitPlusOne: limit + 1,
1002+
limitPlusOne: neo4j.int(limit + 1),
10031003
cursorTs,
10041004
cursorId,
10051005
}
1006-
: { eName, limitPlusOne: limit + 1 },
1006+
: { eName, limitPlusOne: neo4j.int(limit + 1) },
10071007
);
10081008

10091009
const rows = result.records.map((r) => ({

infrastructure/evault-core/src/e2e/evault-core.e2e.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,8 @@ describe("web3-adapter + evault-core Integration", () => {
647647
const res = await fetch(logsUrl, { method: "GET" });
648648
expect(res.status).toBe(400);
649649
const body = await res.json();
650-
expect(body.error).toContain("X-ENAME");
650+
const errorText = [body.error, body.message].filter(Boolean).join(" ");
651+
expect(errorText.toLowerCase()).toMatch(/x-ename|ename/);
651652
});
652653
});
653654
});

0 commit comments

Comments
 (0)