@@ -75,7 +75,10 @@ describe('direct driver with stub server', () => {
75
75
76
76
boltStub . run ( ( ) => {
77
77
const driver = boltStub . newDriver ( 'bolt://127.0.0.1:9001' )
78
- const session = driver . session ( READ , 'neo4j:bookmark:v1:tx42' )
78
+ const session = driver . session ( {
79
+ defaultAccessMode : READ ,
80
+ bookmarks : [ 'neo4j:bookmark:v1:tx42' ]
81
+ } )
79
82
const tx = session . beginTransaction ( )
80
83
tx . run ( 'MATCH (n) RETURN n.name AS name' ) . then ( result => {
81
84
const records = result . records
@@ -111,7 +114,10 @@ describe('direct driver with stub server', () => {
111
114
112
115
boltStub . run ( ( ) => {
113
116
const driver = boltStub . newDriver ( 'bolt://127.0.0.1:9001' )
114
- const session = driver . session ( WRITE , 'neo4j:bookmark:v1:tx42' )
117
+ const session = driver . session ( {
118
+ defaultAccessMode : WRITE ,
119
+ bookmarks : [ 'neo4j:bookmark:v1:tx42' ]
120
+ } )
115
121
const tx = session . beginTransaction ( )
116
122
tx . run ( "CREATE (n {name:'Bob'})" ) . then ( result => {
117
123
const records = result . records
@@ -145,7 +151,10 @@ describe('direct driver with stub server', () => {
145
151
146
152
boltStub . run ( ( ) => {
147
153
const driver = boltStub . newDriver ( 'bolt://127.0.0.1:9001' )
148
- const session = driver . session ( WRITE , 'neo4j:bookmark:v1:tx42' )
154
+ const session = driver . session ( {
155
+ defaultAccessMode : WRITE ,
156
+ bookmarks : [ 'neo4j:bookmark:v1:tx42' ]
157
+ } )
149
158
const writeTx = session . beginTransaction ( )
150
159
writeTx . run ( "CREATE (n {name:'Bob'})" ) . then ( result => {
151
160
const records = result . records
@@ -192,7 +201,10 @@ describe('direct driver with stub server', () => {
192
201
193
202
boltStub . run ( ( ) => {
194
203
const driver = boltStub . newDriver ( 'bolt://127.0.0.1:9001' )
195
- const session = driver . session ( WRITE , 'neo4j:bookmark:v1:tx42' )
204
+ const session = driver . session ( {
205
+ defaultAccessMode : WRITE ,
206
+ bookmarks : [ 'neo4j:bookmark:v1:tx42' ]
207
+ } )
196
208
const writeTx = session . beginTransaction ( )
197
209
writeTx . run ( "CREATE (n {name:'Bob'})" ) . then ( result => {
198
210
const records = result . records
@@ -239,7 +251,10 @@ describe('direct driver with stub server', () => {
239
251
240
252
boltStub . run ( ( ) => {
241
253
const driver = boltStub . newDriver ( 'bolt://127.0.0.1:9001' )
242
- const session = driver . session ( WRITE , 'neo4j:bookmark:v1:tx42' )
254
+ const session = driver . session ( {
255
+ defaultAccessMode : WRITE ,
256
+ bookmarks : [ 'neo4j:bookmark:v1:tx42' ]
257
+ } )
243
258
const writeTx = session . beginTransaction ( )
244
259
writeTx . run ( "CREATE (n {name:'Bob'})" ) . then ( result => {
245
260
const records = result . records
0 commit comments