Skip to content

Commit

Permalink
test: separate WPT console test from other test
Browse files Browse the repository at this point in the history
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: #23340
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
Trott authored and MylesBorins committed Oct 30, 2018
1 parent 75a849a commit 3024e3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions test/parallel/test-console-self-assign.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

require('../common');

// Assigning to itself should not throw.
global.console = global.console; // eslint-disable-line no-self-assign
3 changes: 0 additions & 3 deletions test/parallel/test-whatwg-console-is-a-namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3024e3a

Please sign in to comment.