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:
parent
39490798ba
commit
8a0cc7afc3
6
test/parallel/test-console-self-assign.js
Normal file
6
test/parallel/test-console-self-assign.js
Normal 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
|
@ -5,9 +5,6 @@ require('../common');
|
|||||||
const { test, assert_equals, assert_true, assert_false } =
|
const { test, assert_equals, assert_true, assert_false } =
|
||||||
require('../common/wpt');
|
require('../common/wpt');
|
||||||
|
|
||||||
// Assigning to itself should not throw.
|
|
||||||
global.console = global.console; // eslint-disable-line no-self-assign
|
|
||||||
|
|
||||||
const self = global;
|
const self = global;
|
||||||
|
|
||||||
/* eslint-disable quotes, max-len */
|
/* eslint-disable quotes, max-len */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user