diff options
author | Rich Trott <rtrott@gmail.com> | 2018-09-13 13:47:57 -0700 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-09-25 16:46:07 -0400 |
commit | 8209ccb3132051ed2eaa25f010a96ee902396f04 (patch) | |
tree | 7d5534b3c88c341e91523e0a9da5c95a9af29733 /test | |
parent | 52b21caff28a0792051dfa1bc537723f8acc0c95 (diff) | |
download | node-new-8209ccb3132051ed2eaa25f010a96ee902396f04.tar.gz |
test: prepare test-assert for strictEqual linting
Make minor modifications to test-assert.js to prepare it for linting
rule that forbids the use of string literals for the third argument of
assert.strictEqual().
Backport-PR-URL: https://github.com/nodejs/node/pull/22888
PR-URL: https://github.com/nodejs/node/pull/22849
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-assert.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index cdb824c3cf..c73b49deb3 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -610,11 +610,11 @@ try { } try { - assert.strictEqual(1, 2, 'oh no'); + assert.strictEqual(1, 2, 'oh no'); // eslint-disable-line no-restricted-syntax } catch (e) { assert.strictEqual(e.message.split('\n')[0], 'oh no'); - assert.strictEqual(e.generatedMessage, false, - 'Message incorrectly marked as generated'); + // Message should not be marked as generated. + assert.strictEqual(e.generatedMessage, false); } { |