File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments