Tests for UUID generators
This commit is contained in:
@ -5,6 +5,7 @@ test('Testing UUIDGeneratorBrowser', (t) => {
|
|||||||
//For more information on all the methods supported by tape
|
//For more information on all the methods supported by tape
|
||||||
//Please go to https://github.com/substack/tape
|
//Please go to https://github.com/substack/tape
|
||||||
t.true(typeof UUIDGeneratorBrowser === 'function', 'UUIDGeneratorBrowser is a Function');
|
t.true(typeof UUIDGeneratorBrowser === 'function', 'UUIDGeneratorBrowser is a Function');
|
||||||
|
t.pass('Tested 09/02/2018 by @chalarangelo');
|
||||||
//t.deepEqual(UUIDGeneratorBrowser(args..), 'Expected');
|
//t.deepEqual(UUIDGeneratorBrowser(args..), 'Expected');
|
||||||
//t.equal(UUIDGeneratorBrowser(args..), 'Expected');
|
//t.equal(UUIDGeneratorBrowser(args..), 'Expected');
|
||||||
//t.false(UUIDGeneratorBrowser(args..), 'Expected');
|
//t.false(UUIDGeneratorBrowser(args..), 'Expected');
|
||||||
|
|||||||
@ -5,6 +5,9 @@ test('Testing UUIDGeneratorNode', (t) => {
|
|||||||
//For more information on all the methods supported by tape
|
//For more information on all the methods supported by tape
|
||||||
//Please go to https://github.com/substack/tape
|
//Please go to https://github.com/substack/tape
|
||||||
t.true(typeof UUIDGeneratorNode === 'function', 'UUIDGeneratorNode is a Function');
|
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.deepEqual(UUIDGeneratorNode(args..), 'Expected');
|
||||||
//t.equal(UUIDGeneratorNode(args..), 'Expected');
|
//t.equal(UUIDGeneratorNode(args..), 'Expected');
|
||||||
//t.false(UUIDGeneratorNode(args..), 'Expected');
|
//t.false(UUIDGeneratorNode(args..), 'Expected');
|
||||||
|
|||||||
@ -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
|
> 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code
|
||||||
> tape test/**/*.test.js | tap-spec
|
> 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
|
Testing UUIDGeneratorNode
|
||||||
|
|
||||||
√ UUIDGeneratorNode is a Function
|
√ UUIDGeneratorNode is a Function
|
||||||
|
√ Contains dashes in the proper places
|
||||||
|
√ Only contains hexadecimal digits
|
||||||
|
|
||||||
Testing validateNumber
|
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
|
√ Works with multiple promises
|
||||||
|
|
||||||
|
|
||||||
total: 875
|
total: 877
|
||||||
passing: 875
|
passing: 877
|
||||||
duration: 2.4s
|
duration: 2.4s
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user