repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9664207
)
Ensure the UUID generator define a value
author
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 25 Oct 2022 23:37:44 +0000
(
01:37
+0200)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/test/utils/UtilsTest.ts
b/test/utils/UtilsTest.ts
index 5982e198e290312f4ac659a3510fc25cbb749c13..c7144e4d66ba49277a6dcbc0a736f0cae87a1f90 100644
(file)
--- 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);