@@ -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://myserver :7687" , 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://myserver :7687" , 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:'Arthur', title:'King'})" )
@@ -82,7 +82,7 @@ describe('examples', function() {
82
82
it ( 'should be able to configure session pool size' , function ( done ) {
83
83
var neo4j = neo4jv1 ;
84
84
// tag::configuration[]
85
- var driver = neo4j . driver ( "bolt://myserver :7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , { connectionPoolSize : 50 } ) ;
85
+ var driver = neo4j . driver ( "bolt://localhost :7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , { connectionPoolSize : 50 } ) ;
86
86
//end::configuration[]
87
87
88
88
var s = driver . session ( ) ;
@@ -343,7 +343,7 @@ describe('examples', function() {
343
343
344
344
var neo4j = neo4jv1 ;
345
345
// tag::tls-require-encryption[]
346
- var driver = neo4j . driver ( "bolt://myserver :7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
346
+ var driver = neo4j . driver ( "bolt://localhost :7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
347
347
// In NodeJS, encryption is on by default. In the web bundle, it is off.
348
348
encrypted :true
349
349
} ) ;
@@ -354,7 +354,7 @@ describe('examples', function() {
354
354
it ( 'should document how to configure trust-on-first-use' , function ( ) {
355
355
var neo4j = neo4jv1 ;
356
356
// tag::tls-trust-on-first-use[]
357
- var driver = neo4j . driver ( "bolt://myserver :7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
357
+ var driver = neo4j . driver ( "bolt://localhost :7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
358
358
// Note that trust-on-first-use is not available in the browser bundle,
359
359
// in NodeJS, trust-on-first-use is the default trust mode. In the browser
360
360
// it is TRUST_CUSTOM_CA_SIGNED_CERTIFICATES.
@@ -368,7 +368,7 @@ describe('examples', function() {
368
368
it ( 'should document how to configure a trusted signing certificate' , function ( ) {
369
369
var neo4j = neo4jv1 ;
370
370
// tag::tls-signed[]
371
- var driver = neo4j . driver ( "bolt://myserver :7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
371
+ var driver = neo4j . driver ( "bolt://localhost :7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
372
372
trust : "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES" ,
373
373
// Configuring which certificates to trust here is only available
374
374
// in NodeJS. In the browser bundle the browsers list of trusted
@@ -383,7 +383,7 @@ describe('examples', function() {
383
383
it ( 'should document how to disable auth' , function ( ) {
384
384
var neo4j = neo4jv1 ;
385
385
// tag::connect-with-auth-disabled[]
386
- var driver = neo4j . driver ( "bolt://myserver :7687" , {
386
+ var driver = neo4j . driver ( "bolt://localhost :7687" , {
387
387
// In NodeJS, encryption is on by default. In the web bundle, it is off.
388
388
encrypted :true
389
389
} ) ;
0 commit comments