Skip to content

Commit e1d59b1

Browse files
committed
[Tests] skip test that fails in node 14
1 parent 9fbf004 commit e1d59b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-assert-checktag.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const {isBrowser} = require('../common');
1010
const assert = require('../../assert');
1111

1212
const isNode14 = process.versions.node.indexOf('.') > 1 && process.versions.node.slice(0, 2) >= 14;
13+
const isNode15 = isNode14 && process.versions.node.slice(0, 2) >= 15;
1314

1415
// Disable colored output to prevent color codes from breaking assertion
1516
// message comparisons. This should only be an issue when process.stdout
@@ -61,7 +62,7 @@ if (!isBrowser && isNode14) { // At the moment global has its own type tag
6162
}
6263

6364

64-
if (!isBrowser && isNode14) { // At the moment process has its own type tag
65+
if (!isBrowser && isNode15) { // At the moment process has its own type tag
6566
const fakeProcess = {};
6667
Object.setPrototypeOf(fakeProcess, Object.getPrototypeOf(process));
6768
Object.keys(process).forEach(prop => {

0 commit comments

Comments
 (0)