diff options
author | Rich Trott <rtrott@gmail.com> | 2016-07-08 17:17:47 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-07-12 10:33:29 -0700 |
commit | 5b63d48e9ea93e5fe1265e9e0d43574b6b0d807a (patch) | |
tree | 42b8230d1e0462232b878eb7bc77af63f91c1974 /test/parallel/test-crypto-authenticated.js | |
parent | 55250b83aae7baa0eed4927d84505f4e084dd352 (diff) | |
download | android-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-crypto-authenticated.js')
-rw-r--r-- | test/parallel/test-crypto-authenticated.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/parallel/test-crypto-authenticated.js b/test/parallel/test-crypto-authenticated.js index 506862d1bd..f1b92f8a19 100644 --- a/test/parallel/test-crypto-authenticated.js +++ b/test/parallel/test-crypto-authenticated.js @@ -362,8 +362,7 @@ for (var i in TEST_CASES) { (function() { if (!test.password) return; if (common.hasFipsCrypto) { - assert.throws(function() - { crypto.createCipher(test.algo, test.password); }, + assert.throws(() => { crypto.createCipher(test.algo, test.password); }, /not supported in FIPS mode/); } else { var encrypt = crypto.createCipher(test.algo, test.password); @@ -383,8 +382,7 @@ for (var i in TEST_CASES) { (function() { if (!test.password) return; if (common.hasFipsCrypto) { - assert.throws(function() - { crypto.createDecipher(test.algo, test.password); }, + assert.throws(() => { crypto.createDecipher(test.algo, test.password); }, /not supported in FIPS mode/); } else { var decrypt = crypto.createDecipher(test.algo, test.password); @@ -415,9 +413,9 @@ for (var i in TEST_CASES) { 'ipxp9a6i1Mb4USb4', '6fKjEjR3Vl30EUYC'); encrypt.update('blah', 'ascii'); encrypt.final(); - assert.throws(function() { encrypt.getAuthTag(); }, / state/); - assert.throws(function() { - encrypt.setAAD(Buffer.from('123', 'ascii')); }, / state/); + assert.throws(() => { encrypt.getAuthTag(); }, / state/); + assert.throws(() => { encrypt.setAAD(Buffer.from('123', 'ascii')); }, + / state/); })(); (function() { @@ -432,8 +430,8 @@ for (var i in TEST_CASES) { // trying to set tag on encryption object: var encrypt = crypto.createCipheriv(test.algo, Buffer.from(test.key, 'hex'), Buffer.from(test.iv, 'hex')); - assert.throws(function() { - encrypt.setAuthTag(Buffer.from(test.tag, 'hex')); }, / state/); + assert.throws(() => { encrypt.setAuthTag(Buffer.from(test.tag, 'hex')); }, + / state/); })(); (function() { |