summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-binary-default.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-05-04 22:20:27 -0700
committerEvan Lucas <evanlucas@me.com>2016-05-17 08:16:09 -0500
commitedb29b8096732af960673a822f6ba762b9e82df0 (patch)
tree7fa0e283b077656f3fcff9497c3acf5178bef2e9 /test/parallel/test-crypto-binary-default.js
parent6806ebb608f8e1dc6a6715e141825f32571ef95e (diff)
downloadnode-new-edb29b8096732af960673a822f6ba762b9e82df0.tar.gz
tools: lint for object literal spacing
There has been occasional nits for spacing in object literals in PRs but the project does not lint for it and it is not always handled consistently in the existing code, even on adjacent lines of a file. This change enables a linting rule requiring no space between the key and the colon, and requiring at least one space (but allowing for more so property values can be lined up if desired) between the colon and the value. This appears to be the most common style used in the current code base. Example code the complies with lint rule: myObj = { foo: 'bar' }; Examples that do not comply with the lint rule: myObj = { foo : 'bar' }; myObj = { foo:'bar' }; PR-URL: https://github.com/nodejs/node/pull/6592 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Diffstat (limited to 'test/parallel/test-crypto-binary-default.js')
-rw-r--r--test/parallel/test-crypto-binary-default.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-crypto-binary-default.js b/test/parallel/test-crypto-binary-default.js
index 921f236e90..7245f24079 100644
--- a/test/parallel/test-crypto-binary-default.js
+++ b/test/parallel/test-crypto-binary-default.js
@@ -30,19 +30,19 @@ var rsaKeyPem = fs.readFileSync(common.fixturesDir + '/test_rsa_privkey.pem',
// 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});
}, 'mac verify failure');
assert.throws(function() {
- tls.createSecureContext({pfx:certPfx, passphrase:'test'});
+ tls.createSecureContext({pfx: certPfx, passphrase: 'test'});
}, 'mac verify failure');
assert.throws(function() {
- tls.createSecureContext({pfx:'sample', passphrase:'test'});
+ tls.createSecureContext({pfx: 'sample', passphrase: 'test'});
}, 'not enough data');
// Test HMAC