Skip to content

Commit 9fed62f

Browse files
Trotttargos
authored andcommitted
test: remove common.skipIfInspectorEnabled()
common.skipIfInspectorEnabled() is only used once in all of the tests. The test is more clear (in my opinion, at least) without the abstraction so put the check directly in the test. Additionally, it honestly looks like an error (which is how I noticed it in the first place) and that someone mistyped the far more common skipIfInspectorDisabled(). PR-URL: #29993 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent d9b5508 commit 9fed62f

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

test/common/index.js

-7
Original file line numberDiff line numberDiff line change
@@ -651,12 +651,6 @@ function skipIfInspectorDisabled() {
651651
}
652652
}
653653

654-
function skipIfInspectorEnabled() {
655-
if (process.features.inspector) {
656-
skip('V8 inspector is enabled');
657-
}
658-
}
659-
660654
function skipIfReportDisabled() {
661655
if (!process.config.variables.node_report) {
662656
skip('Diagnostic reporting is disabled');
@@ -789,7 +783,6 @@ module.exports = {
789783
skipIf32Bits,
790784
skipIfEslintMissing,
791785
skipIfInspectorDisabled,
792-
skipIfInspectorEnabled,
793786
skipIfReportDisabled,
794787
skipIfWorker,
795788

test/parallel/test-coverage-with-inspector-disabled.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
'use strict';
22

33
const common = require('../common');
4-
common.skipIfInspectorEnabled();
4+
if (process.features.inspector) {
5+
common.skip('V8 inspector is enabled');
6+
}
57

68
const fixtures = require('../common/fixtures');
79
const assert = require('assert');

0 commit comments

Comments
 (0)