From 8a0cc7afc3878b437845fa655869bd636aba9fdb Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 8 Oct 2018 13:20:49 -0700 Subject: [PATCH] test: separate WPT console test from other test Remove one test from test-whatwg-console-is-a-namespace that is not part of the WPT test. Put it in test-console-self-assign. PR-URL: https://github.com/nodejs/node/pull/23340 Reviewed-By: Richard Lau Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Colin Ihrig --- test/parallel/test-console-self-assign.js | 6 ++++++ test/parallel/test-whatwg-console-is-a-namespace.js | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 test/parallel/test-console-self-assign.js diff --git a/test/parallel/test-console-self-assign.js b/test/parallel/test-console-self-assign.js new file mode 100644 index 00000000000..53c54ab9a32 --- /dev/null +++ b/test/parallel/test-console-self-assign.js @@ -0,0 +1,6 @@ +'use strict'; + +require('../common'); + +// Assigning to itself should not throw. +global.console = global.console; // eslint-disable-line no-self-assign diff --git a/test/parallel/test-whatwg-console-is-a-namespace.js b/test/parallel/test-whatwg-console-is-a-namespace.js index 82665411879..fb28e751a32 100644 --- a/test/parallel/test-whatwg-console-is-a-namespace.js +++ b/test/parallel/test-whatwg-console-is-a-namespace.js @@ -5,9 +5,6 @@ require('../common'); const { test, assert_equals, assert_true, assert_false } = require('../common/wpt'); -// Assigning to itself should not throw. -global.console = global.console; // eslint-disable-line no-self-assign - const self = global; /* eslint-disable quotes, max-len */