Skip to content

Commit

Permalink
Update execute unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angrykoala committed Jan 29, 2025
1 parent 7ddde75 commit a3a6129
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/graphql/src/utils/execute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe("execute", () => {

const tx = {
run: (paramCypher, paramParams) => {
expect(paramCypher).toEqual(cypher);
expect(paramCypher).toBe(`CYPHER 5\n${cypher}`);
expect(paramParams).toEqual(params);

return { records, summary: { counters: { updates: () => ({ test: 1 }) } } };
Expand Down Expand Up @@ -126,7 +126,7 @@ describe("execute", () => {

const tx = {
run: (paramCypher: string, paramParams) => {
expect(trimmer(paramCypher)).toEqual(cypher);
expect(trimmer(paramCypher)).toBe(`CYPHER 5 ${cypher}`);
expect(paramParams).toEqual(params);

return { records, summary: { counters: { updates: () => ({ test: 1 }) } } };
Expand Down Expand Up @@ -189,6 +189,7 @@ describe("execute", () => {
`);

const expectedCypher = trimmer(`
CYPHER 5
CYPHER runtime=interpreted planner=cost updateStrategy=default expressionEngine=compiled operatorEngine=compiled interpretedPipesFallback=all replan=default
CREATE (u:User {title: $title})
RETURN u { .title } as u
Expand Down

0 comments on commit a3a6129

Please # to comment.