diff --git a/test/parallel/test-require-deps-deprecation.js b/test/parallel/test-require-deps-deprecation.js index b4af723b2ee8e6..5e22b573c80ade 100644 --- a/test/parallel/test-require-deps-deprecation.js +++ b/test/parallel/test-require-deps-deprecation.js @@ -5,22 +5,6 @@ const assert = require('assert'); // The v8 modules when imported leak globals. Disable global check. common.globalCheck = false; -const deprecatedModules = [ - 'node-inspect/lib/_inspect', - 'node-inspect/lib/internal/inspect_client', - 'node-inspect/lib/internal/inspect_repl', - 'v8/tools/SourceMap', - 'v8/tools/codemap', - 'v8/tools/consarray', - 'v8/tools/csvparser', - 'v8/tools/logreader', - 'v8/tools/profile', - 'v8/tools/profile_view', - 'v8/tools/splaytree', - 'v8/tools/tickprocessor', - 'v8/tools/tickprocessor-driver' -]; - // Newly added deps that do not have a deprecation wrapper around it would // throw an error, but no warning would be emitted. const deps = [ @@ -28,14 +12,6 @@ const deps = [ 'acorn/dist/walk' ]; -const throwingModules = () => { - for (const m of deprecatedModules) { - require(m); - } -}; - -assert.throws(throwingModules, ReferenceError); - // Instead of checking require, check that resolve isn't pointing toward a // built-in module, as user might already have node installed with acorn in // require.resolve range.