Skip to content

Commit 3ad7c1a

Browse files
committed
test: remove unused deprecation code
Currently there are two tests that specify a third argument, a deprecation code string, when calling common.expectWarning. The function only takes two arguments and this third argument is not used. This commit removes the deprecation code. PR-URL: #19317 Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Jackson Tian <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 536190f commit 3ad7c1a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

test/parallel/test-process-assert.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ const assert = require('assert');
44

55
common.expectWarning(
66
'DeprecationWarning',
7-
'process.assert() is deprecated. Please use the `assert` module instead.',
8-
'DEP0100'
7+
'process.assert() is deprecated. Please use the `assert` module instead.'
98
);
109

1110
assert.strictEqual(process.assert(1, 'error'), undefined);

test/parallel/test-process-env-deprecation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ common.expectWarning(
88
'DeprecationWarning',
99
'Assigning any value other than a string, number, or boolean to a ' +
1010
'process.env property is deprecated. Please make sure to convert the value ' +
11-
'to a string before setting process.env with it.',
12-
'DEP0104'
11+
'to a string before setting process.env with it.'
1312
);
1413

1514
process.env.ABC = undefined;

0 commit comments

Comments
 (0)