summaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-fill.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-12-31 21:39:57 -0800
committerRich Trott <rtrott@gmail.com>2017-01-06 14:36:01 -0800
commita68987c154fbc041ea6d03ffdafa447e8c8a26f5 (patch)
treefd24a8cb10c8805a1ff6189b8e6663773d866f4e /test/parallel/test-buffer-fill.js
parente9b72916790b21daa6d1caac3a9540e8cdadad57 (diff)
downloadandroid-node-v8-a68987c154fbc041ea6d03ffdafa447e8c8a26f5.tar.gz
android-node-v8-a68987c154fbc041ea6d03ffdafa447e8c8a26f5.tar.bz2
android-node-v8-a68987c154fbc041ea6d03ffdafa447e8c8a26f5.zip
benchmark,lib,test: adjust for linting
Formatting changes for upcoming linter update. PR-URL: https://github.com/nodejs/node/pull/10561 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'test/parallel/test-buffer-fill.js')
-rw-r--r--test/parallel/test-buffer-fill.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/parallel/test-buffer-fill.js b/test/parallel/test-buffer-fill.js
index eecb14abb0..8cfeeabe91 100644
--- a/test/parallel/test-buffer-fill.js
+++ b/test/parallel/test-buffer-fill.js
@@ -184,20 +184,20 @@ deepStrictEqualValues(genBuffer(4, [hexBufFill, 1, -1]), [0, 0, 0, 0]);
assert.throws(() => buf1.fill(0, -1), /^RangeError: Out of range index$/);
assert.throws(() =>
buf1.fill(0, 0, buf1.length + 1),
- /^RangeError: Out of range index$/);
+ /^RangeError: Out of range index$/);
assert.throws(() => buf1.fill('', -1), /^RangeError: Out of range index$/);
assert.throws(() =>
buf1.fill('', 0, buf1.length + 1),
- /^RangeError: Out of range index$/);
+ /^RangeError: Out of range index$/);
assert.throws(() =>
buf1.fill('a', 0, buf1.length, 'node rocks!'),
- /^TypeError: Unknown encoding: node rocks!$/);
+ /^TypeError: Unknown encoding: node rocks!$/);
assert.throws(() =>
buf1.fill('a', 0, 0, NaN),
- /^TypeError: encoding must be a string$/);
+ /^TypeError: encoding must be a string$/);
assert.throws(() =>
buf1.fill('a', 0, 0, null),
- /^TypeError: encoding must be a string$/);
+ /^TypeError: encoding must be a string$/);
assert.throws(() =>
buf1.fill('a', 0, 0, 'foo'), /^TypeError: Unknown encoding: foo$/);
@@ -271,10 +271,10 @@ function testBufs(string, offset, length, encoding) {
// Make sure these throw.
assert.throws(() =>
Buffer.allocUnsafe(8).fill('a', -1),
- /^RangeError: Out of range index$/);
+ /^RangeError: Out of range index$/);
assert.throws(() =>
Buffer.allocUnsafe(8).fill('a', 0, 9),
- /^RangeError: Out of range index$/);
+ /^RangeError: Out of range index$/);
// Make sure this doesn't hang indefinitely.
Buffer.allocUnsafe(8).fill('');