File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- var common = require ( '../common' ) ;
3
- var assert = require ( 'assert' ) ;
2
+ const common = require ( '../common' ) ;
4
3
5
4
if ( ! common . hasCrypto ) {
6
5
common . skip ( 'missing crypto' ) ;
7
6
return ;
8
7
}
9
- var crypto = require ( 'crypto' ) ;
10
8
11
- var stream = require ( 'stream' ) ;
12
- var s = new stream . PassThrough ( ) ;
13
- var h = crypto . createHash ( 'sha1' ) ;
14
- var expect = '15987e60950cf22655b9323bc1e281f9c4aff47e' ;
9
+ const assert = require ( 'assert' ) ;
10
+ const crypto = require ( 'crypto' ) ;
11
+
12
+ const stream = require ( 'stream' ) ;
13
+ const s = new stream . PassThrough ( ) ;
14
+ const h = crypto . createHash ( 'sha1' ) ;
15
+ const expect = '15987e60950cf22655b9323bc1e281f9c4aff47e' ;
15
16
16
17
s . pipe ( h ) . on ( 'data' , common . mustCall ( function ( c ) {
17
18
assert . strictEqual ( c , expect ) ;
You can’t perform that action at this time.
0 commit comments