@@ -34,7 +34,7 @@ describe('examples', function() {
3434 beforeEach ( function ( done ) {
3535 var neo4j = neo4jv1 ;
3636 //tag::construct-driver[]
37- driverGlobal = neo4j . driver ( "bolt://localhost" , neo4j . auth . basic ( "neo4j" , "neo4j" ) ) ;
37+ driverGlobal = neo4j . driver ( "bolt://localhost:7687 " , neo4j . auth . basic ( "neo4j" , "neo4j" ) ) ;
3838 //end::construct-driver[]
3939 sessionGlobal = driverGlobal . session ( ) ;
4040
@@ -59,7 +59,7 @@ describe('examples', function() {
5959 var neo4j = require ( 'neo4j-driver' ) . v1 ;
6060 // end::minimal-example-import[]
6161 // tag::minimal-example[]
62- var driver = neo4j . driver ( "bolt://localhost" , neo4j . auth . basic ( "neo4j" , "neo4j" ) ) ;
62+ var driver = neo4j . driver ( "bolt://localhost:7687 " , neo4j . auth . basic ( "neo4j" , "neo4j" ) ) ;
6363 var session = driver . session ( ) ;
6464 session
6565 . run ( "CREATE (a:Person {name: {name}, title: {title}})" , { name : "Arthur" , title : "King" } )
@@ -83,7 +83,7 @@ describe('examples', function() {
8383 it ( 'should be able to configure session pool size' , function ( done ) {
8484 var neo4j = neo4jv1 ;
8585 // tag::configuration[]
86- var driver = neo4j . driver ( "bolt://localhost" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , { connectionPoolSize : 50 } ) ;
86+ var driver = neo4j . driver ( "bolt://localhost:7687 " , neo4j . auth . basic ( "neo4j" , "neo4j" ) , { connectionPoolSize : 50 } ) ;
8787 //end::configuration[]
8888
8989 var s = driver . session ( ) ;
@@ -349,7 +349,7 @@ describe('examples', function() {
349349
350350 var neo4j = neo4jv1 ;
351351 // tag::tls-require-encryption[]
352- var driver = neo4j . driver ( "bolt://localhost" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
352+ var driver = neo4j . driver ( "bolt://localhost:7687 " , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
353353 // In NodeJS, encryption is on by default. In the web bundle, it is off.
354354 encrypted :true
355355 } ) ;
@@ -360,7 +360,7 @@ describe('examples', function() {
360360 it ( 'should document how to configure trust-on-first-use' , function ( ) {
361361 var neo4j = neo4jv1 ;
362362 // tag::tls-trust-on-first-use[]
363- var driver = neo4j . driver ( "bolt://localhost" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
363+ var driver = neo4j . driver ( "bolt://localhost:7687 " , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
364364 // Note that trust-on-first-use is not available in the browser bundle,
365365 // in NodeJS, trust-on-first-use is the default trust mode. In the browser
366366 // it is TRUST_CUSTOM_CA_SIGNED_CERTIFICATES.
@@ -374,7 +374,7 @@ describe('examples', function() {
374374 it ( 'should document how to configure a trusted signing certificate' , function ( ) {
375375 var neo4j = neo4jv1 ;
376376 // tag::tls-signed[]
377- var driver = neo4j . driver ( "bolt://localhost" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
377+ var driver = neo4j . driver ( "bolt://localhost:7687 " , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
378378 trust : "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES" ,
379379 // Configuring which certificates to trust here is only available
380380 // in NodeJS. In the browser bundle the browsers list of trusted
@@ -389,7 +389,7 @@ describe('examples', function() {
389389 it ( 'should document how to disable auth' , function ( ) {
390390 var neo4j = neo4jv1 ;
391391 // tag::connect-with-auth-disabled[]
392- var driver = neo4j . driver ( "bolt://localhost" , {
392+ var driver = neo4j . driver ( "bolt://localhost:7687 " , {
393393 // In NodeJS, encryption is on by default. In the web bundle, it is off.
394394 encrypted :true
395395 } ) ;
0 commit comments