From 48ebebd2a8e188168390f440a5115ba753c38cd4 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 23 May 2021 17:20:44 +0200 Subject: [PATCH] test: remove unnecessary `--pending-deprecation` flag PR-URL: https://github.com/nodejs/node/pull/38819 Reviewed-By: Darshan Sen Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- ...g-deprecations.mjs => test-esm-exports-deprecations.mjs} | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) rename test/es-module/{test-esm-exports-pending-deprecations.mjs => test-esm-exports-deprecations.mjs} (74%) diff --git a/test/es-module/test-esm-exports-pending-deprecations.mjs b/test/es-module/test-esm-exports-deprecations.mjs similarity index 74% rename from test/es-module/test-esm-exports-pending-deprecations.mjs rename to test/es-module/test-esm-exports-deprecations.mjs index c5bcb17740c536..2dd2756e2ee844 100644 --- a/test/es-module/test-esm-exports-pending-deprecations.mjs +++ b/test/es-module/test-esm-exports-deprecations.mjs @@ -1,4 +1,3 @@ -// Flags: --pending-deprecation import { mustCall } from '../common/index.mjs'; import assert from 'assert'; @@ -15,7 +14,4 @@ process.addListener('warning', mustCall((warning) => { assert(warning.stack.includes(expectedWarnings[curWarning++]), warning.stack); }, expectedWarnings.length)); -(async () => { - await import('./test-esm-exports.mjs'); -})() -.catch((err) => console.error(err)); +await import('./test-esm-exports.mjs');