Test cleanup and fixes [a-b]

This commit is contained in:
Angelos Chalaris
2018-06-18 15:54:48 +03:00
parent 4f7da1be9b
commit d29974ebc9
151 changed files with 753 additions and 373 deletions

View File

@ -6,7 +6,9 @@ const UUIDGeneratorNode = require('./UUIDGeneratorNode.js');
expect(UUIDGeneratorNode).toBeInstanceOf(Function);
});
const uuid = UUIDGeneratorNode();
t.deepEqual([uuid[8], uuid[13], uuid[18], uuid[23]], ['-', '-', '-', '-'], 'Contains dashes in the proper places');
test('Contains dashes in the proper places', () => {
expect([uuid[8], uuid[13], uuid[18], uuid[23]], ['-', '-', '-', '-']).toEqual()
});
test('Only contains hexadecimal digits', () => {
expect(/^[0-9A-Fa-f-]+$/.test(uuid)).toBeTruthy();
});