diff --git a/snippets/hashNode.md b/snippets/hashNode.md index de94595da..73d2439a4 100644 --- a/snippets/hashNode.md +++ b/snippets/hashNode.md @@ -22,5 +22,5 @@ const hashNode = val => ``` ```js -hashBrowser(JSON.stringify({ a: 'a', b: [1, 2, 3, 4], foo: { c: 'bar' } })).then(console.log); // '04aa106279f5977f59f9067fa9712afc4aedc6f5862a8defc34552d8c7206393' +hashNode(JSON.stringify({ a: 'a', b: [1, 2, 3, 4], foo: { c: 'bar' } })).then(console.log); // '04aa106279f5977f59f9067fa9712afc4aedc6f5862a8defc34552d8c7206393' ``` diff --git a/test/hashNode/hashNode.test.js b/test/hashNode/hashNode.test.js index e89dafe9e..51345a607 100644 --- a/test/hashNode/hashNode.test.js +++ b/test/hashNode/hashNode.test.js @@ -5,9 +5,10 @@ test('Testing hashNode', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof hashNode === 'function', 'hashNode is a Function'); + hashNode(JSON.stringify({ a: 'a', b: [1, 2, 3, 4], foo: { c: 'bar' } })).then(v => t.equal(v, '04aa106279f5977f59f9067fa9712afc4aedc6f5862a8defc34552d8c7206393', 'Produces the appropriate hash')); //t.deepEqual(hashNode(args..), 'Expected'); //t.equal(hashNode(args..), 'Expected'); //t.false(hashNode(args..), 'Expected'); //t.throws(hashNode(args..), 'Expected'); t.end(); -}); \ No newline at end of file +}); diff --git a/test/testlog b/test/testlog index 93328ad4a..9515de44a 100644 --- a/test/testlog +++ b/test/testlog @@ -1,4 +1,4 @@ -Test log for: Sun Feb 04 2018 17:54:05 GMT+0200 (GTB Standard Time) +Test log for: Sun Feb 04 2018 20:45:51 GMT+0200 (GTB Standard Time) > 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code > tape test/**/*.test.js | tap-spec @@ -1096,6 +1096,7 @@ Test log for: Sun Feb 04 2018 17:54:05 GMT+0200 (GTB Standard Time) Testing pipeAsyncFunctions √ pipeAsyncFunctions is a Function + √ Produces the appropriate hash √ pipeAsyncFunctions result should be 15 Testing pipeFunctions @@ -1705,8 +1706,8 @@ Test log for: Sun Feb 04 2018 17:54:05 GMT+0200 (GTB Standard Time) √ Works with multiple promises - total: 812 - passing: 812 - duration: 2.5s + total: 813 + passing: 813 + duration: 2.4s