summaryrefslogtreecommitdiff
path: root/test/sequential/test-crypto-timing-safe-equal.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/sequential/test-crypto-timing-safe-equal.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/sequential/test-crypto-timing-safe-equal.js')
-rw-r--r--test/sequential/test-crypto-timing-safe-equal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sequential/test-crypto-timing-safe-equal.js b/test/sequential/test-crypto-timing-safe-equal.js
index 9c4265a672..7a1f8d2993 100644
--- a/test/sequential/test-crypto-timing-safe-equal.js
+++ b/test/sequential/test-crypto-timing-safe-equal.js
@@ -24,14 +24,14 @@ assert.strictEqual(
assert.throws(function() {
crypto.timingSafeEqual(Buffer.from([1, 2, 3]), Buffer.from([1, 2]));
}, /^TypeError: Input buffers must have the same length$/,
- 'should throw when given buffers with different lengths');
+ 'should throw when given buffers with different lengths');
assert.throws(function() {
crypto.timingSafeEqual('not a buffer', Buffer.from([1, 2]));
}, /^TypeError: First argument must be a buffer$/,
- 'should throw if the first argument is not a buffer');
+ 'should throw if the first argument is not a buffer');
assert.throws(function() {
crypto.timingSafeEqual(Buffer.from([1, 2]), 'not a buffer');
}, /^TypeError: Second argument must be a buffer$/,
- 'should throw if the second argument is not a buffer');
+ 'should throw if the second argument is not a buffer');