@@ -100,7 +100,7 @@ describe('RoutingUtil', () => {
100
100
const session = FakeSession . withFakeConnection ( connection ) ;
101
101
102
102
callRoutingProcedure ( session , { } ) . then ( ( ) => {
103
- expect ( connection . seenStatements ) . toEqual ( [ 'CALL dbms.cluster.routing.getRoutingTable({ context} )' ] ) ;
103
+ expect ( connection . seenStatements ) . toEqual ( [ 'CALL dbms.cluster.routing.getRoutingTable($ context)' ] ) ;
104
104
expect ( connection . seenParameters ) . toEqual ( [ { context : { } } ] ) ;
105
105
done ( ) ;
106
106
} ) ;
@@ -111,7 +111,7 @@ describe('RoutingUtil', () => {
111
111
const session = FakeSession . withFakeConnection ( connection ) ;
112
112
113
113
callRoutingProcedure ( session , { key1 : 'value1' , key2 : 'value2' } ) . then ( ( ) => {
114
- expect ( connection . seenStatements ) . toEqual ( [ 'CALL dbms.cluster.routing.getRoutingTable({ context} )' ] ) ;
114
+ expect ( connection . seenStatements ) . toEqual ( [ 'CALL dbms.cluster.routing.getRoutingTable($ context)' ] ) ;
115
115
expect ( connection . seenParameters ) . toEqual ( [ { context : { key1 : 'value1' , key2 : 'value2' } } ] ) ;
116
116
done ( ) ;
117
117
} ) ;
@@ -122,7 +122,7 @@ describe('RoutingUtil', () => {
122
122
const session = FakeSession . withFakeConnection ( connection ) ;
123
123
124
124
callRoutingProcedure ( session , { } ) . then ( ( ) => {
125
- expect ( connection . seenStatements ) . toEqual ( [ 'CALL dbms.cluster.routing.getRoutingTable({ context} )' ] ) ;
125
+ expect ( connection . seenStatements ) . toEqual ( [ 'CALL dbms.cluster.routing.getRoutingTable($ context)' ] ) ;
126
126
expect ( connection . seenParameters ) . toEqual ( [ { context : { } } ] ) ;
127
127
done ( ) ;
128
128
} ) ;
@@ -133,7 +133,7 @@ describe('RoutingUtil', () => {
133
133
const session = FakeSession . withFakeConnection ( connection ) ;
134
134
135
135
callRoutingProcedure ( session , { key1 : 'foo' , key2 : 'bar' } ) . then ( ( ) => {
136
- expect ( connection . seenStatements ) . toEqual ( [ 'CALL dbms.cluster.routing.getRoutingTable({ context} )' ] ) ;
136
+ expect ( connection . seenStatements ) . toEqual ( [ 'CALL dbms.cluster.routing.getRoutingTable($ context)' ] ) ;
137
137
expect ( connection . seenParameters ) . toEqual ( [ { context : { key1 : 'foo' , key2 : 'bar' } } ] ) ;
138
138
done ( ) ;
139
139
} ) ;
0 commit comments