Skip to content

Commit

Permalink
edit config test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan-Arrowood committed Feb 2, 2024
1 parent eb88c21 commit 8b03a57
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/report/test-report-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ assert.throws(() => {
}, { code: 'ERR_INVALID_ARG_TYPE' });
assert.strictEqual(process.report.compact, true);

// Verify that process.report.reportDisableNetwork behaves properly.
assert.strictEqual(process.report.disableNetwork, true);
process.report.disableNetwork = false;
assert.strictEqual(process.report.disableNetwork, false);
process.report.disableNetwork = true;
assert.strictEqual(process.report.disableNetwork, true);
assert.throws(() => {
process.report.disableNetwork = {};
}, { code: 'ERR_INVALID_ARG_TYPE' });
assert.strictEqual(process.report.disableNetwork, true);

if (!common.isWindows) {
// Verify that process.report.signal behaves properly.
assert.strictEqual(process.report.signal, 'SIGUSR2');
Expand Down

0 comments on commit 8b03a57

Please sign in to comment.