@@ -365,7 +365,7 @@ describe('examples', function() {
365365 var neo4j = neo4jv1 ;
366366 // tag::tls-require-encryption[]
367367 var driver = neo4j . driver ( "bolt://localhost:7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
368- // In NodeJS, encryption is ENCRYPTION_NON_LOCAL on by default. In the web bundle, it is ENCRYPTION_OFF .
368+ // In NodeJS, encryption is on by default. In the web bundle, it is off .
369369 encrypted :"ENCRYPTION_ON"
370370 } ) ;
371371 // end::tls-require-encryption[]
@@ -377,10 +377,10 @@ describe('examples', function() {
377377 // tag::tls-trust-on-first-use[]
378378 var driver = neo4j . driver ( "bolt://localhost:7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
379379 // Note that trust-on-first-use is not available in the browser bundle,
380- // in NodeJS, trust-on-first-use is the default trust mode. In the browser
380+ // in NodeJS, trust-all-certificates is the default trust mode. In the browser
381381 // it is TRUST_CUSTOM_CA_SIGNED_CERTIFICATES.
382382 trust : "TRUST_ON_FIRST_USE" ,
383- encrypted :"ENCRYPTION_NON_LOCAL "
383+ encrypted :"ENCRYPTION_ON "
384384 } ) ;
385385 // end::tls-trust-on-first-use[]
386386 driver . close ( ) ;
@@ -395,7 +395,7 @@ describe('examples', function() {
395395 // in NodeJS. In the browser bundle the browsers list of trusted
396396 // certificates is used, due to technical limitations in some browsers.
397397 trustedCertificates : [ "path/to/ca.crt" ] ,
398- encrypted :"ENCRYPTION_NON_LOCAL "
398+ encrypted :"ENCRYPTION_ON "
399399 } ) ;
400400 // end::tls-signed[]
401401 driver . close ( ) ;
@@ -406,7 +406,7 @@ describe('examples', function() {
406406 // tag::connect-with-auth-disabled[]
407407 var driver = neo4j . driver ( "bolt://localhost:7687" , {
408408 // In NodeJS, encryption is on by default. In the web bundle, it is off.
409- encrypted :"ENCRYPTION_NON_LOCAL "
409+ encrypted :"ENCRYPTION_ON "
410410 } ) ;
411411 // end::connect-with-auth-disabled[]
412412 driver . close ( ) ;
0 commit comments