Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiaan Deckers <sebdeckers83@gmail.com>2017-07-11 03:55:21 +0300
committerRefael Ackermann <refack@gmail.com>2017-07-21 22:13:47 +0300
commitbb294059040def8e8c0b1719cc17f6537ab5cb39 (patch)
treeacc6b7bcf88da8e6078fa5ab91f6718289f32bbf /test/addons-napi
parent4f875222445b07016a8294fa5a5bf7418c735489 (diff)
lib,src: fix consistent spacing inside braces
PR-URL: https://github.com/nodejs/node/pull/14162 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/addons-napi')
-rw-r--r--test/addons-napi/test_make_callback_recurse/test.js14
-rw-r--r--test/addons-napi/test_object/test.js8
2 files changed, 11 insertions, 11 deletions
diff --git a/test/addons-napi/test_make_callback_recurse/test.js b/test/addons-napi/test_make_callback_recurse/test.js
index 895769bc330..77815e052ab 100644
--- a/test/addons-napi/test_make_callback_recurse/test.js
+++ b/test/addons-napi/test_make_callback_recurse/test.js
@@ -101,11 +101,11 @@ function checkDomains() {
const d2 = domain.create();
const d3 = domain.create();
- makeCallback({domain: d1}, common.mustCall(function() {
+ makeCallback({ domain: d1 }, common.mustCall(function() {
assert.strictEqual(d1, process.domain);
- makeCallback({domain: d2}, common.mustCall(function() {
+ makeCallback({ domain: d2 }, common.mustCall(function() {
assert.strictEqual(d2, process.domain);
- makeCallback({domain: d3}, common.mustCall(function() {
+ makeCallback({ domain: d3 }, common.mustCall(function() {
assert.strictEqual(d3, process.domain);
}));
assert.strictEqual(d2, process.domain);
@@ -119,11 +119,11 @@ function checkDomains() {
const d2 = domain.create();
const d3 = domain.create();
- makeCallback({domain: d1}, common.mustCall(function() {
+ makeCallback({ domain: d1 }, common.mustCall(function() {
assert.strictEqual(d1, process.domain);
- makeCallback({domain: d2}, common.mustCall(function() {
+ makeCallback({ domain: d2 }, common.mustCall(function() {
assert.strictEqual(d2, process.domain);
- makeCallback({domain: d3}, common.mustCall(function() {
+ makeCallback({ domain: d3 }, common.mustCall(function() {
assert.strictEqual(d3, process.domain);
}));
assert.strictEqual(d2, process.domain);
@@ -139,7 +139,7 @@ function checkDomains() {
d.on('error', common.mustCall(function(e) {
assert.strictEqual(e.message, `throw from domain ${id}`);
}));
- makeCallback({domain: d}, function() {
+ makeCallback({ domain: d }, function() {
throw new Error(`throw from domain ${id}`);
});
throw new Error('UNREACHABLE');
diff --git a/test/addons-napi/test_object/test.js b/test/addons-napi/test_object/test.js
index 9e8f17de282..8e44a1b5ed6 100644
--- a/test/addons-napi/test_object/test.js
+++ b/test/addons-napi/test_object/test.js
@@ -92,12 +92,12 @@ assert.strictEqual(newObject.test_string, 'test string');
z: 10
};
- assert.deepStrictEqual(test_object.Inflate(cube), {x: 11, y: 11, z: 11});
- assert.deepStrictEqual(test_object.Inflate(cube), {x: 12, y: 12, z: 12});
- assert.deepStrictEqual(test_object.Inflate(cube), {x: 13, y: 13, z: 13});
+ assert.deepStrictEqual(test_object.Inflate(cube), { x: 11, y: 11, z: 11 });
+ assert.deepStrictEqual(test_object.Inflate(cube), { x: 12, y: 12, z: 12 });
+ assert.deepStrictEqual(test_object.Inflate(cube), { x: 13, y: 13, z: 13 });
cube.t = 13;
assert.deepStrictEqual(
- test_object.Inflate(cube), {x: 14, y: 14, z: 14, t: 14});
+ test_object.Inflate(cube), { x: 14, y: 14, z: 14, t: 14 });
const sym1 = Symbol('1');
const sym2 = Symbol('2');