summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-stream.js
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2016-01-13 21:42:45 +0100
committerRoman Reiss <me@silverwind.io>2016-01-13 23:16:17 +0100
commitd1aabd626428cec65e5f54c04d9e3446d1e4d3b7 (patch)
tree9a4d4de19204b8b50d496dd6046a897f107bcf4d /test/parallel/test-crypto-stream.js
parentec8e0ae697d96c417bda0bbe5be9712cf5923b1f (diff)
downloadandroid-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.tar.gz
android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.tar.bz2
android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.zip
test: fix style issues after eslint update
Replace var keyword with const or let. PR-URL: https://github.com/nodejs/io.js/pull/2286 Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-crypto-stream.js')
-rw-r--r--test/parallel/test-crypto-stream.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-crypto-stream.js b/test/parallel/test-crypto-stream.js
index f276e16172..bf0fc2ca1d 100644
--- a/test/parallel/test-crypto-stream.js
+++ b/test/parallel/test-crypto-stream.js
@@ -43,11 +43,11 @@ if (!common.hasFipsCrypto) {
}
// Decipher._flush() should emit an error event, not an exception.
-var key = new Buffer('48fb56eb10ffeb13fc0ef551bbca3b1b', 'hex'),
- badkey = new Buffer('12341234123412341234123412341234', 'hex'),
- iv = new Buffer('6d358219d1f488f5f4eb12820a66d146', 'hex'),
- cipher = crypto.createCipheriv('aes-128-cbc', key, iv),
- decipher = crypto.createDecipheriv('aes-128-cbc', badkey, iv);
+const key = new Buffer('48fb56eb10ffeb13fc0ef551bbca3b1b', 'hex');
+const badkey = new Buffer('12341234123412341234123412341234', 'hex');
+const iv = new Buffer('6d358219d1f488f5f4eb12820a66d146', 'hex');
+const cipher = crypto.createCipheriv('aes-128-cbc', key, iv);
+const decipher = crypto.createDecipheriv('aes-128-cbc', badkey, iv);
cipher.pipe(decipher)
.on('error', common.mustCall(function end(err) {