@@ -34,7 +34,7 @@ describe('examples', function() {
34
34
beforeEach ( function ( done ) {
35
35
var neo4j = neo4jv1 ;
36
36
//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" ) ) ;
38
38
//end::construct-driver[]
39
39
sessionGlobal = driverGlobal . session ( ) ;
40
40
@@ -59,7 +59,7 @@ describe('examples', function() {
59
59
var neo4j = require ( 'neo4j-driver' ) . v1 ;
60
60
// end::minimal-example-import[]
61
61
// 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" ) ) ;
63
63
var session = driver . session ( ) ;
64
64
session
65
65
. run ( "CREATE (a:Person {name: {name}, title: {title}})" , { name : "Arthur" , title : "King" } )
@@ -83,7 +83,7 @@ describe('examples', function() {
83
83
it ( 'should be able to configure session pool size' , function ( done ) {
84
84
var neo4j = neo4jv1 ;
85
85
// 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 } ) ;
87
87
//end::configuration[]
88
88
89
89
var s = driver . session ( ) ;
@@ -349,7 +349,7 @@ describe('examples', function() {
349
349
350
350
var neo4j = neo4jv1 ;
351
351
// 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" ) , {
353
353
// In NodeJS, encryption is on by default. In the web bundle, it is off.
354
354
encrypted :true
355
355
} ) ;
@@ -360,7 +360,7 @@ describe('examples', function() {
360
360
it ( 'should document how to configure trust-on-first-use' , function ( ) {
361
361
var neo4j = neo4jv1 ;
362
362
// 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" ) , {
364
364
// Note that trust-on-first-use is not available in the browser bundle,
365
365
// in NodeJS, trust-on-first-use is the default trust mode. In the browser
366
366
// it is TRUST_CUSTOM_CA_SIGNED_CERTIFICATES.
@@ -374,7 +374,7 @@ describe('examples', function() {
374
374
it ( 'should document how to configure a trusted signing certificate' , function ( ) {
375
375
var neo4j = neo4jv1 ;
376
376
// 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" ) , {
378
378
trust : "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES" ,
379
379
// Configuring which certificates to trust here is only available
380
380
// in NodeJS. In the browser bundle the browsers list of trusted
@@ -389,7 +389,7 @@ describe('examples', function() {
389
389
it ( 'should document how to disable auth' , function ( ) {
390
390
var neo4j = neo4jv1 ;
391
391
// tag::connect-with-auth-disabled[]
392
- var driver = neo4j . driver ( "bolt://localhost" , {
392
+ var driver = neo4j . driver ( "bolt://localhost:7687 " , {
393
393
// In NodeJS, encryption is on by default. In the web bundle, it is off.
394
394
encrypted :true
395
395
} ) ;
0 commit comments