diff --git a/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js b/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js index bb868d1e8..255054290 100644 --- a/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js +++ b/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js @@ -5,9 +5,10 @@ test('Testing UUIDGeneratorBrowser', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof UUIDGeneratorBrowser === 'function', 'UUIDGeneratorBrowser is a Function'); + t.pass('Tested 09/02/2018 by @chalarangelo'); //t.deepEqual(UUIDGeneratorBrowser(args..), 'Expected'); //t.equal(UUIDGeneratorBrowser(args..), 'Expected'); //t.false(UUIDGeneratorBrowser(args..), 'Expected'); //t.throws(UUIDGeneratorBrowser(args..), 'Expected'); t.end(); -}); \ No newline at end of file +}); diff --git a/test/UUIDGeneratorNode/UUIDGeneratorNode.test.js b/test/UUIDGeneratorNode/UUIDGeneratorNode.test.js index bedb41340..1857e1727 100644 --- a/test/UUIDGeneratorNode/UUIDGeneratorNode.test.js +++ b/test/UUIDGeneratorNode/UUIDGeneratorNode.test.js @@ -5,9 +5,12 @@ test('Testing UUIDGeneratorNode', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof UUIDGeneratorNode === 'function', 'UUIDGeneratorNode is a Function'); + const uuid = UUIDGeneratorNode(); + t.deepEqual([uuid[8], uuid[13], uuid[18], uuid[23]], ['-', '-', '-', '-'], 'Contains dashes in the proper places'); + t.true(/^[0-9A-Fa-f-]+$/.test(uuid), 'Only contains hexadecimal digits'); //t.deepEqual(UUIDGeneratorNode(args..), 'Expected'); //t.equal(UUIDGeneratorNode(args..), 'Expected'); //t.false(UUIDGeneratorNode(args..), 'Expected'); //t.throws(UUIDGeneratorNode(args..), 'Expected'); t.end(); -}); \ No newline at end of file +}); diff --git a/test/testlog b/test/testlog index fe4d8c3ab..b88ea7796 100644 --- a/test/testlog +++ b/test/testlog @@ -1,4 +1,4 @@ -Test log for: Fri Feb 09 2018 13:12:06 GMT+0200 (GTB Standard Time) +Test log for: Fri Feb 09 2018 13:19:59 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 @@ -1680,6 +1680,8 @@ Test log for: Fri Feb 09 2018 13:12:06 GMT+0200 (GTB Standard Time) Testing UUIDGeneratorNode √ UUIDGeneratorNode is a Function + √ Contains dashes in the proper places + √ Only contains hexadecimal digits Testing validateNumber @@ -1777,8 +1779,8 @@ Test log for: Fri Feb 09 2018 13:12:06 GMT+0200 (GTB Standard Time) √ Works with multiple promises - total: 875 - passing: 875 + total: 877 + passing: 877 duration: 2.4s