We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb4b650 commit 63fafb8Copy full SHA for 63fafb8
test/parallel/test-crypto-hash-stream-pipe.js
@@ -1,17 +1,18 @@
1
'use strict';
2
-var common = require('../common');
3
-var assert = require('assert');
+const common = require('../common');
4
5
if (!common.hasCrypto) {
6
common.skip('missing crypto');
7
return;
8
}
9
-var crypto = require('crypto');
10
11
-var stream = require('stream');
12
-var s = new stream.PassThrough();
13
-var h = crypto.createHash('sha1');
14
-var expect = '15987e60950cf22655b9323bc1e281f9c4aff47e';
+const assert = require('assert');
+const crypto = require('crypto');
+
+const stream = require('stream');
+const s = new stream.PassThrough();
+const h = crypto.createHash('sha1');
15
+const expect = '15987e60950cf22655b9323bc1e281f9c4aff47e';
16
17
s.pipe(h).on('data', common.mustCall(function(c) {
18
assert.strictEqual(c, expect);
0 commit comments