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;
26
26
describe ( 'trust-signed-certificates' , function ( ) {
27
27
28
28
var driver ;
29
-
29
+ var log = console . log
30
+ beforeEach ( function ( ) {
31
+ console . log = function ( ) { } ; // To mute deprecation message in test output
32
+ } )
30
33
it ( 'should reject unknown certificates' , function ( done ) {
31
34
// Assuming we only run this test on NodeJS
32
35
if ( ! NodeChannel . available ) {
@@ -88,16 +91,13 @@ describe('trust-signed-certificates', function() {
88
91
if ( driver ) {
89
92
driver . close ( ) ;
90
93
}
94
+ console . log = log ;
91
95
} ) ;
92
96
} ) ;
93
97
94
98
describe ( 'trust-custom-ca-signed-certificates' , function ( ) {
95
99
96
100
var driver ;
97
- var log = console . log
98
- beforeEach ( function ( ) {
99
- console . log = function ( ) { } ; // To mute deprecation message in test output
100
- } )
101
101
it ( 'should reject unknown certificates' , function ( done ) {
102
102
// Assuming we only run this test on NodeJS
103
103
if ( ! NodeChannel . available ) {
@@ -141,7 +141,6 @@ describe('trust-custom-ca-signed-certificates', function() {
141
141
if ( driver ) {
142
142
driver . close ( ) ;
143
143
}
144
- console . log = log ;
145
144
} ) ;
146
145
} ) ;
147
146
You can’t perform that action at this time.
0 commit comments