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 <riclau@uk.ibm.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Rich Trott 2018-10-08 13:20:49 -07:00
parent 39490798ba
commit 8a0cc7afc3
2 changed files with 6 additions and 3 deletions

View File

@ -0,0 +1,6 @@
'use strict';
require('../common');
// Assigning to itself should not throw.
global.console = global.console; // eslint-disable-line no-self-assign

View File

@ -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 */