Travis build: 1297 [cron]
This commit is contained in:
15
test/hashNode/hashNode.js
Normal file
15
test/hashNode/hashNode.js
Normal file
@ -0,0 +1,15 @@
|
||||
const crypto = require('crypto');
|
||||
const hashNode = val =>
|
||||
new Promise(resolve =>
|
||||
setTimeout(
|
||||
() =>
|
||||
resolve(
|
||||
crypto
|
||||
.createHash('sha256')
|
||||
.update(val)
|
||||
.digest('hex')
|
||||
),
|
||||
0
|
||||
)
|
||||
);
|
||||
module.exports = hashNode
|
||||
Reference in New Issue
Block a user