Skip to content

Commit c08538a

Browse files
test_runner:make skip/todo/expectFailure use JS truthiness (nodejs#61815)
1 parent 1995947 commit c08538a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/internal/test_runner/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const {
99
ArrayPrototypeSplice,
1010
ArrayPrototypeUnshift,
1111
ArrayPrototypeUnshiftApply,
12+
Boolean,
1213
Error,
1314
FunctionPrototype,
1415
MathMax,

test/parallel/test-runner-skip-empty-string.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
'use strict';
2+
require('../common');
3+
24
const { test } = require('node:test');
35
const assert = require('assert');
46

@@ -10,4 +12,4 @@ test('skip option empty string should not skip', { skip: '' }, () => {
1012

1113
process.on('exit', () => {
1214
assert.ok(ran);
13-
});
15+
});

0 commit comments

Comments
 (0)