diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-03-13 06:56:06 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-03-15 07:20:06 +0100 |
commit | 3ad7c1ae9778fd9a61b4e99eeab4291827700d55 (patch) | |
tree | a12b7a174dbabdcd67305e10365399ca02ad7239 | |
parent | 536190f1747a1085c2dd208d0eed090f5ee32da0 (diff) | |
download | node-new-3ad7c1ae9778fd9a61b4e99eeab4291827700d55.tar.gz |
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: https://github.com/nodejs/node/pull/19317
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Jackson Tian <shyvo1987@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
-rw-r--r-- | test/parallel/test-process-assert.js | 3 | ||||
-rw-r--r-- | test/parallel/test-process-env-deprecation.js | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/test/parallel/test-process-assert.js b/test/parallel/test-process-assert.js index 74792eebb7..659fa8ed7a 100644 --- a/test/parallel/test-process-assert.js +++ b/test/parallel/test-process-assert.js @@ -4,8 +4,7 @@ const assert = require('assert'); common.expectWarning( 'DeprecationWarning', - 'process.assert() is deprecated. Please use the `assert` module instead.', - 'DEP0100' + 'process.assert() is deprecated. Please use the `assert` module instead.' ); assert.strictEqual(process.assert(1, 'error'), undefined); diff --git a/test/parallel/test-process-env-deprecation.js b/test/parallel/test-process-env-deprecation.js index 68817b320b..310023fba7 100644 --- a/test/parallel/test-process-env-deprecation.js +++ b/test/parallel/test-process-env-deprecation.js @@ -8,8 +8,7 @@ common.expectWarning( 'DeprecationWarning', 'Assigning any value other than a string, number, or boolean to a ' + 'process.env property is deprecated. Please make sure to convert the value ' + - 'to a string before setting process.env with it.', - 'DEP0104' + 'to a string before setting process.env with it.' ); process.env.ABC = undefined; |