From: Jérôme Benoit Date: Tue, 25 Oct 2022 23:37:44 +0000 (+0200) Subject: Ensure the UUID generator define a value X-Git-Tag: v1.1.86~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d12e7f3c812d4ce351492eb3b5da2722d261f331;p=e-mobility-charging-stations-simulator.git Ensure the UUID generator define a value Signed-off-by: Jérôme Benoit --- diff --git a/test/utils/UtilsTest.ts b/test/utils/UtilsTest.ts index 5982e198..c7144e4d 100644 --- a/test/utils/UtilsTest.ts +++ b/test/utils/UtilsTest.ts @@ -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);