aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-fill.js
diff options
context:
space:
mode:
authorSebastiaan Deckers <sebdeckers83@gmail.com>2017-07-10 20:55:21 -0400
committerRefael Ackermann <refack@gmail.com>2017-07-21 15:13:47 -0400
commitbb294059040def8e8c0b1719cc17f6537ab5cb39 (patch)
treeacc6b7bcf88da8e6078fa5ab91f6718289f32bbf /test/parallel/test-buffer-fill.js
parent4f875222445b07016a8294fa5a5bf7418c735489 (diff)
downloadandroid-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.gz
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.bz2
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.zip
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/parallel/test-buffer-fill.js')
-rw-r--r--test/parallel/test-buffer-fill.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/parallel/test-buffer-fill.js b/test/parallel/test-buffer-fill.js
index eb3629f954..f35dcc66e0 100644
--- a/test/parallel/test-buffer-fill.js
+++ b/test/parallel/test-buffer-fill.js
@@ -194,16 +194,16 @@ deepStrictEqualValues(genBuffer(4, [hexBufFill, 1, -1]), [0, 0, 0, 0]);
// Check exceptions
assert.throws(
() => buf1.fill(0, -1),
- common.expectsError({code: 'ERR_INDEX_OUT_OF_RANGE'}));
+ common.expectsError({ code: 'ERR_INDEX_OUT_OF_RANGE' }));
assert.throws(
() => buf1.fill(0, 0, buf1.length + 1),
- common.expectsError({code: 'ERR_INDEX_OUT_OF_RANGE'}));
+ common.expectsError({ code: 'ERR_INDEX_OUT_OF_RANGE' }));
assert.throws(
() => buf1.fill('', -1),
- common.expectsError({code: 'ERR_INDEX_OUT_OF_RANGE'}));
+ common.expectsError({ code: 'ERR_INDEX_OUT_OF_RANGE' }));
assert.throws(
() => buf1.fill('', 0, buf1.length + 1),
- common.expectsError({code: 'ERR_INDEX_OUT_OF_RANGE'}));
+ common.expectsError({ code: 'ERR_INDEX_OUT_OF_RANGE' }));
assert.throws(
() => buf1.fill('a', 0, buf1.length, 'node rocks!'),
common.expectsError({
@@ -301,10 +301,10 @@ function testBufs(string, offset, length, encoding) {
// Make sure these throw.
assert.throws(
() => Buffer.allocUnsafe(8).fill('a', -1),
- common.expectsError({code: 'ERR_INDEX_OUT_OF_RANGE'}));
+ common.expectsError({ code: 'ERR_INDEX_OUT_OF_RANGE' }));
assert.throws(
() => Buffer.allocUnsafe(8).fill('a', 0, 9),
- common.expectsError({code: 'ERR_INDEX_OUT_OF_RANGE'}));
+ common.expectsError({ code: 'ERR_INDEX_OUT_OF_RANGE' }));
// Make sure this doesn't hang indefinitely.
Buffer.allocUnsafe(8).fill('');
@@ -371,7 +371,7 @@ Buffer.alloc(8, '');
};
Buffer.alloc(1).fill(Buffer.alloc(1), start, 1);
}, common.expectsError(
- {code: undefined, type: RangeError, message: 'Index out of range'}));
+ { code: undefined, type: RangeError, message: 'Index out of range' }));
// Make sure -1 is making it to Buffer::Fill().
assert.ok(elseWasLast,
'internal API changed, -1 no longer in correct location');
@@ -382,7 +382,7 @@ Buffer.alloc(8, '');
assert.throws(() => {
process.binding('buffer').fill(Buffer.alloc(1), 1, -1, 0, 1);
}, common.expectsError(
- {code: undefined, type: RangeError, message: 'Index out of range'}));
+ { code: undefined, type: RangeError, message: 'Index out of range' }));
// Make sure "end" is properly checked, even if it's magically mangled using
// Symbol.toPrimitive.
@@ -406,7 +406,7 @@ assert.throws(() => {
};
Buffer.alloc(1).fill(Buffer.alloc(1), 0, end);
}, common.expectsError(
- {code: undefined, type: RangeError, message: 'Index out of range'}));
+ { code: undefined, type: RangeError, message: 'Index out of range' }));
// Make sure -1 is making it to Buffer::Fill().
assert.ok(elseWasLast,
'internal API changed, -1 no longer in correct location');
@@ -417,7 +417,7 @@ assert.throws(() => {
assert.throws(() => {
process.binding('buffer').fill(Buffer.alloc(1), 1, 1, -2, 1);
}, common.expectsError(
- { code: undefined, type: RangeError, message: 'Index out of range'}));
+ { code: undefined, type: RangeError, message: 'Index out of range' }));
// Test that bypassing 'length' won't cause an abort.
assert.throws(() => {
@@ -428,7 +428,7 @@ assert.throws(() => {
});
buf.fill('');
}, common.expectsError(
- { code: undefined, type: RangeError, message: 'Index out of range'}));
+ { code: undefined, type: RangeError, message: 'Index out of range' }));
assert.deepStrictEqual(
Buffer.allocUnsafeSlow(16).fill('ab', 'utf16le'),