aboutsummaryrefslogtreecommitdiff
path: root/test/pseudo-tty/test-assert-position-indicator.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-05-01 23:52:37 +0200
committerRich Trott <rtrott@gmail.com>2019-05-05 14:44:19 -0700
commit0cd602879c5e3f6a77adc2453f98b331421b2dbb (patch)
tree096b07b6a98cf974f3fff03f608c64f0c108d16b /test/pseudo-tty/test-assert-position-indicator.js
parent3593af00f8e2748a4e36ef425051d7d04b5e5bb0 (diff)
downloadandroid-node-v8-0cd602879c5e3f6a77adc2453f98b331421b2dbb.tar.gz
android-node-v8-0cd602879c5e3f6a77adc2453f98b331421b2dbb.tar.bz2
android-node-v8-0cd602879c5e3f6a77adc2453f98b331421b2dbb.zip
assert: refine assertion message
This makes sure that the error message is more appropriate than before by checking closer what operator is used and which is not. It also increases the total number of lines printed to the user. PR-URL: https://github.com/nodejs/node/pull/27525 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'test/pseudo-tty/test-assert-position-indicator.js')
-rw-r--r--test/pseudo-tty/test-assert-position-indicator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pseudo-tty/test-assert-position-indicator.js b/test/pseudo-tty/test-assert-position-indicator.js
index 26f82b5b13..e56299d274 100644
--- a/test/pseudo-tty/test-assert-position-indicator.js
+++ b/test/pseudo-tty/test-assert-position-indicator.js
@@ -13,6 +13,6 @@ assert.throws(
// Confirm that there is a position indicator.
assert.throws(
- () => { assert.deepStrictEqual('aaa', 'aaaa'); },
+ () => { assert.deepStrictEqual('aaaa', 'aaaaa'); },
(err) => err.message.includes('^')
);