File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ var isLocalHost = require("../../lib/v1/internal/util").isLocalHost;
2626describe ( 'trust-signed-certificates' , function ( ) {
2727
2828 var driver ;
29-
29+ var log = console . log
30+ beforeEach ( function ( ) {
31+ console . log = function ( ) { } ; // To mute deprecation message in test output
32+ } )
3033 it ( 'should reject unknown certificates' , function ( done ) {
3134 // Assuming we only run this test on NodeJS
3235 if ( ! NodeChannel . available ) {
@@ -88,16 +91,13 @@ describe('trust-signed-certificates', function() {
8891 if ( driver ) {
8992 driver . close ( ) ;
9093 }
94+ console . log = log ;
9195 } ) ;
9296} ) ;
9397
9498describe ( 'trust-custom-ca-signed-certificates' , function ( ) {
9599
96100 var driver ;
97- var log = console . log
98- beforeEach ( function ( ) {
99- console . log = function ( ) { } ; // To mute deprecation message in test output
100- } )
101101 it ( 'should reject unknown certificates' , function ( done ) {
102102 // Assuming we only run this test on NodeJS
103103 if ( ! NodeChannel . available ) {
@@ -141,7 +141,6 @@ describe('trust-custom-ca-signed-certificates', function() {
141141 if ( driver ) {
142142 driver . close ( ) ;
143143 }
144- console . log = log ;
145144 } ) ;
146145} ) ;
147146
You can’t perform that action at this time.
0 commit comments