Skip to content

Commit b6cd8ca

Browse files
committed
Fix lint and prettier
1 parent 88a04c9 commit b6cd8ca

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/pattern/Pattern.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ describe("Patterns", () => {
191191
.to(b)
192192
);
193193
const queryResult = query.build();
194-
expect(queryResult.cypher).toMatchInlineSnapshot(`"(this0:Person&Actor { name: $param0, surname: $param1 })-[this1:ACTED_IN { roles: $param2 }]->(this2)"`);
194+
expect(queryResult.cypher).toMatchInlineSnapshot(
195+
`"(this0:Person&Actor { name: $param0, surname: $param1 })-[this1:ACTED_IN { roles: $param2 }]->(this2)"`
196+
);
195197

196198
expect(queryResult.params).toMatchInlineSnapshot(`
197199
{
@@ -223,7 +225,9 @@ describe("Patterns", () => {
223225
.to(b)
224226
);
225227
const queryResult = query.build();
226-
expect(queryResult.cypher).toMatchInlineSnapshot(`"(this0:Person&Actor)-[this1:ACTED_IN { roles: (\\"The \\" + \\"Matrix\\") }]->(this2)"`);
228+
expect(queryResult.cypher).toMatchInlineSnapshot(
229+
`"(this0:Person&Actor)-[this1:ACTED_IN { roles: (\\"The \\" + \\"Matrix\\") }]->(this2)"`
230+
);
227231

228232
expect(queryResult.params).toMatchInlineSnapshot(`{}`);
229233
});

src/references/Label.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ export class Label extends CypherASTNode {
5353
/** @internal */
5454
public getCypher(env: CypherEnvironment): string {
5555
const nodeId = this.node.getCypher(env);
56-
const labelsStr = this.generateLabelExpressionStr(env);
56+
const labelsStr = this.generateLabelExpressionStr();
5757
return `${nodeId}${labelsStr}`;
5858
}
5959

60-
private generateLabelExpressionStr(env: CypherEnvironment): string {
60+
private generateLabelExpressionStr(): string {
6161
return addLabelToken(escapeLabel(this.label));
6262
}
6363
}

0 commit comments

Comments
 (0)