File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,17 @@ assert.throws(() => {
66
66
} , { code : 'ERR_INVALID_ARG_TYPE' } ) ;
67
67
assert . strictEqual ( process . report . compact , true ) ;
68
68
69
+ // Verify that process.report.reportDisableNetwork behaves properly.
70
+ assert . strictEqual ( process . report . disableNetwork , true ) ;
71
+ process . report . disableNetwork = false ;
72
+ assert . strictEqual ( process . report . disableNetwork , false ) ;
73
+ process . report . disableNetwork = true ;
74
+ assert . strictEqual ( process . report . disableNetwork , true ) ;
75
+ assert . throws ( ( ) => {
76
+ process . report . disableNetwork = { } ;
77
+ } , { code : 'ERR_INVALID_ARG_TYPE' } ) ;
78
+ assert . strictEqual ( process . report . disableNetwork , true ) ;
79
+
69
80
if ( ! common . isWindows ) {
70
81
// Verify that process.report.signal behaves properly.
71
82
assert . strictEqual ( process . report . signal , 'SIGUSR2' ) ;
You can’t perform that action at this time.
0 commit comments