summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-certificate.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-02-08 10:41:15 -0800
committerRich Trott <rtrott@gmail.com>2016-02-09 09:33:08 -0800
commita84bf2ce68a1ffd5c09c9ff297a56814cd79923f (patch)
tree907c1fdbe8c230c77da58953f0aaf06609f6315f /test/parallel/test-crypto-certificate.js
parenteea987f937682338a0d0a659c4c28b9ca041dc5e (diff)
downloadandroid-node-v8-a84bf2ce68a1ffd5c09c9ff297a56814cd79923f.tar.gz
android-node-v8-a84bf2ce68a1ffd5c09c9ff297a56814cd79923f.tar.bz2
android-node-v8-a84bf2ce68a1ffd5c09c9ff297a56814cd79923f.zip
tools: disallow mixed spaces and tabs for indents
Enable eslint rule disallowing mixing tabs and spaces for indentation. Modify the one file that had been mixing tabs and spaces. PR-URL: https://github.com/nodejs/node/pull/5135 Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-crypto-certificate.js')
-rw-r--r--test/parallel/test-crypto-certificate.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/parallel/test-crypto-certificate.js b/test/parallel/test-crypto-certificate.js
index 9814b39555..9948303f32 100644
--- a/test/parallel/test-crypto-certificate.js
+++ b/test/parallel/test-crypto-certificate.js
@@ -22,14 +22,16 @@ var certificate = new crypto.Certificate();
assert.equal(certificate.verifySpkac(spkacValid), true);
assert.equal(certificate.verifySpkac(spkacFail), false);
-assert.equal(stripLineEndings(certificate.exportPublicKey(spkacValid)
- .toString('utf8')),
- stripLineEndings(spkacPem.toString('utf8')));
+assert.equal(
+ stripLineEndings(certificate.exportPublicKey(spkacValid).toString('utf8')),
+ stripLineEndings(spkacPem.toString('utf8'))
+);
assert.equal(certificate.exportPublicKey(spkacFail), '');
-assert.equal(certificate.exportChallenge(spkacValid)
- .toString('utf8'),
- 'fb9ab814-6677-42a4-a60c-f905d1a6924d');
+assert.equal(
+ certificate.exportChallenge(spkacValid).toString('utf8'),
+ 'fb9ab814-6677-42a4-a60c-f905d1a6924d'
+);
assert.equal(certificate.exportChallenge(spkacFail), '');
function stripLineEndings(obj) {