summaryrefslogtreecommitdiff
path: root/test/parallel/test-process-cpuUsage.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-07-08 17:17:47 -0700
committerRich Trott <rtrott@gmail.com>2016-07-12 10:33:29 -0700
commit5b63d48e9ea93e5fe1265e9e0d43574b6b0d807a (patch)
tree42b8230d1e0462232b878eb7bc77af63f91c1974 /test/parallel/test-process-cpuUsage.js
parent55250b83aae7baa0eed4927d84505f4e084dd352 (diff)
downloadandroid-node-v8-5b63d48e9ea93e5fe1265e9e0d43574b6b0d807a.tar.gz
android-node-v8-5b63d48e9ea93e5fe1265e9e0d43574b6b0d807a.tar.bz2
android-node-v8-5b63d48e9ea93e5fe1265e9e0d43574b6b0d807a.zip
lib,benchmark,test: implement consistent braces
This change is in preparation for lint-enforced brace style. PR-URL: https://github.com/nodejs/node/pull/7630 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'test/parallel/test-process-cpuUsage.js')
-rw-r--r--test/parallel/test-process-cpuUsage.js20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/parallel/test-process-cpuUsage.js b/test/parallel/test-process-cpuUsage.js
index d0ac2a18fc..92dc719185 100644
--- a/test/parallel/test-process-cpuUsage.js
+++ b/test/parallel/test-process-cpuUsage.js
@@ -42,14 +42,18 @@ assert.throws(function() { process.cpuUsage({ user: null, system: 'c' }); });
assert.throws(function() { process.cpuUsage({ user: 'd', system: null }); });
assert.throws(function() { process.cpuUsage({ user: -1, system: 2 }); });
assert.throws(function() { process.cpuUsage({ user: 3, system: -2 }); });
-assert.throws(function() { process.cpuUsage({
- user: Number.POSITIVE_INFINITY,
- system: 4
-});});
-assert.throws(function() { process.cpuUsage({
- user: 5,
- system: Number.NEGATIVE_INFINITY
-});});
+assert.throws(function() {
+ process.cpuUsage({
+ user: Number.POSITIVE_INFINITY,
+ system: 4
+ });
+});
+assert.throws(function() {
+ process.cpuUsage({
+ user: 5,
+ system: Number.NEGATIVE_INFINITY
+ });
+});
// Ensure that the return value is the expected shape.
function validateResult(result) {