diff options
author | Sebastiaan Deckers <sebdeckers83@gmail.com> | 2017-07-10 20:55:21 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2017-07-21 15:13:47 -0400 |
commit | bb294059040def8e8c0b1719cc17f6537ab5cb39 (patch) | |
tree | acc6b7bcf88da8e6078fa5ab91f6718289f32bbf /test/parallel/test-crypto-binary-default.js | |
parent | 4f875222445b07016a8294fa5a5bf7418c735489 (diff) | |
download | android-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-crypto-binary-default.js')
-rw-r--r-- | test/parallel/test-crypto-binary-default.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-crypto-binary-default.js b/test/parallel/test-crypto-binary-default.js index 5bb254057b..4a31f76865 100644 --- a/test/parallel/test-crypto-binary-default.js +++ b/test/parallel/test-crypto-binary-default.js @@ -48,19 +48,19 @@ const rsaKeyPem = fs.readFileSync(`${fixtDir}/test_rsa_privkey.pem`, 'ascii'); // PFX tests assert.doesNotThrow(function() { - tls.createSecureContext({pfx: certPfx, passphrase: 'sample'}); + tls.createSecureContext({ pfx: certPfx, passphrase: 'sample' }); }); assert.throws(function() { - tls.createSecureContext({pfx: certPfx}); + tls.createSecureContext({ pfx: certPfx }); }, /^Error: mac verify failure$/); assert.throws(function() { - tls.createSecureContext({pfx: certPfx, passphrase: 'test'}); + tls.createSecureContext({ pfx: certPfx, passphrase: 'test' }); }, /^Error: mac verify failure$/); assert.throws(function() { - tls.createSecureContext({pfx: 'sample', passphrase: 'test'}); + tls.createSecureContext({ pfx: 'sample', passphrase: 'test' }); }, /^Error: not enough data$/); // Test HMAC @@ -549,7 +549,7 @@ testCipher4(Buffer.from('0123456789abcd0123456789'), Buffer.from('12345678')); // update() should only take buffers / strings assert.throws(function() { - crypto.createHash('sha1').update({foo: 'bar'}); + crypto.createHash('sha1').update({ foo: 'bar' }); }, /^TypeError: Data must be a string or a buffer$/); |