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 11'use strict' ;
2- var common = require ( '../common' ) ;
3- var assert = require ( 'assert' ) ;
2+ const common = require ( '../common' ) ;
43
54if ( ! common . hasCrypto ) {
65 common . skip ( 'missing crypto' ) ;
76 return ;
87}
9- var crypto = require ( 'crypto' ) ;
108
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' ;
1516
1617s . pipe ( h ) . on ( 'data' , common . mustCall ( function ( c ) {
1718 assert . strictEqual ( c , expect ) ;
You can’t perform that action at this time.
0 commit comments