File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ var hasFeature = require("../../lib/v1/internal/features");
25
25
describe ( 'trust-signed-certificates' , function ( ) {
26
26
27
27
var driver ;
28
-
28
+ var log = console . log
29
+ beforeEach ( function ( ) {
30
+ console . log = function ( ) { } ; // To mute deprecation message in test output
31
+ } )
29
32
it ( 'should reject unknown certificates' , function ( done ) {
30
33
// Assuming we only run this test on NodeJS
31
34
if ( ! NodeChannel . available ) {
@@ -87,16 +90,13 @@ describe('trust-signed-certificates', function() {
87
90
if ( driver ) {
88
91
driver . close ( ) ;
89
92
}
93
+ console . log = log ;
90
94
} ) ;
91
95
} ) ;
92
96
93
97
describe ( 'trust-custom-ca-signed-certificates' , function ( ) {
94
98
95
99
var driver ;
96
- var log = console . log
97
- beforeEach ( function ( ) {
98
- console . log = function ( ) { } ; // To mute deprecation message in test output
99
- } )
100
100
it ( 'should reject unknown certificates' , function ( done ) {
101
101
// Assuming we only run this test on NodeJS
102
102
if ( ! NodeChannel . available ) {
@@ -140,7 +140,6 @@ describe('trust-custom-ca-signed-certificates', function() {
140
140
if ( driver ) {
141
141
driver . close ( ) ;
142
142
}
143
- console . log = log ;
144
143
} ) ;
145
144
} ) ;
146
145
You can’t perform that action at this time.
0 commit comments