Ensure the UUID generator define a value
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 25 Oct 2022 23:37:44 +0000 (01:37 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 25 Oct 2022 23:37:44 +0000 (01:37 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
test/utils/UtilsTest.ts

index 5982e198e290312f4ac659a3510fc25cbb749c13..c7144e4d66ba49277a6dcbc0a736f0cae87a1f90 100644 (file)
@@ -5,6 +5,7 @@ import Utils from '../../src/utils/Utils';
 describe('Utils test suite', () => {
   it('Verify generateUUID()/validateUUID()', () => {
     const uuid = Utils.generateUUID();
+    expect(uuid).toBeDefined();
     expect(uuid.length).toEqual(36);
     expect(Utils.validateUUID(uuid)).toBe(true);
     expect(Utils.validateUUID('abcdef00-0000-4000-0000-000000000000')).toBe(true);