diff options
author | Rich Trott <rtrott@gmail.com> | 2017-06-20 14:37:00 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-06-23 14:43:20 -0700 |
commit | 095c0de94d818088cacf2c33ad4913768c15024a (patch) | |
tree | 77eb0aaffa2aa80ba1240280a716eb64c4a7ff1d /test/parallel/test-domain-uncaught-exception.js | |
parent | e3ea0fc97bf3a911463275446024b50e8bae865f (diff) | |
download | android-node-v8-095c0de94d818088cacf2c33ad4913768c15024a.tar.gz android-node-v8-095c0de94d818088cacf2c33ad4913768c15024a.tar.bz2 android-node-v8-095c0de94d818088cacf2c33ad4913768c15024a.zip |
benchmark,lib,test: use braces for multiline block
For if/else and loops where the bodies span more than one line, use
curly braces.
PR-URL: https://github.com/nodejs/node/pull/13828
Ref: https://github.com/nodejs/node/pull/13623#discussion_r123048602
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-domain-uncaught-exception.js')
-rw-r--r-- | test/parallel/test-domain-uncaught-exception.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-domain-uncaught-exception.js b/test/parallel/test-domain-uncaught-exception.js index 2a157f9398..0e5548df56 100644 --- a/test/parallel/test-domain-uncaught-exception.js +++ b/test/parallel/test-domain-uncaught-exception.js @@ -182,10 +182,11 @@ if (process.argv[2] === 'child') { // Make sure that all expected messages were sent from the // child process test.expectedMessages.forEach(function(expectedMessage) { - if (test.messagesReceived === undefined || - test.messagesReceived.indexOf(expectedMessage) === -1) + const msgs = test.messagesReceived; + if (msgs === undefined || !msgs.includes(expectedMessage)) { assert.fail(`test ${test.fn.name} should have sent message: ${ expectedMessage} but didn't`); + } }); if (test.messagesReceived) { |