diff options
Diffstat (limited to 'test/sequential')
-rw-r--r-- | test/sequential/test-inspector-has-inspector-false.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/sequential/test-inspector-has-inspector-false.js b/test/sequential/test-inspector-has-inspector-false.js new file mode 100644 index 0000000000..cdb7ca9e19 --- /dev/null +++ b/test/sequential/test-inspector-has-inspector-false.js @@ -0,0 +1,15 @@ +// Flags: --expose-internals +'use strict'; + +const common = require('../common'); + +// This is to ensure that the sendInspectorCommand function calls the error +// function if its called with the v8_enable_inspector is disabled + +process.config.variables.v8_enable_inspector = 0; +const inspector = require('internal/util/inspector'); + +inspector.sendInspectorCommand( + common.mustNotCall('Inspector callback should not be called'), + common.mustCall(1), +); |