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:
a8118b9
)
test: trivial cleanup
author
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 25 Aug 2023 22:54:39 +0000
(
00:54
+0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 25 Aug 2023 22:54:39 +0000
(
00:54
+0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
test/utils/Utils.test.ts
patch
|
blob
|
blame
|
history
diff --git
a/test/utils/Utils.test.ts
b/test/utils/Utils.test.ts
index 05bf2bbb4c089eb99a6803616f4fb068c49d1df4..80aec47bac8c952b23239629a560d5866e54680b 100644
(file)
--- a/
test/utils/Utils.test.ts
+++ b/
test/utils/Utils.test.ts
@@
-48,8
+48,8
@@
describe('Utils test suite', () => {
it('Verify sleep()', async () => {
const start = performance.now();
await sleep(1000);
- const
end
= performance.now();
- expect(
end
- start).toBeGreaterThanOrEqual(1000);
+ const
stop
= performance.now();
+ expect(
stop
- start).toBeGreaterThanOrEqual(1000);
});
it('Verify formatDurationMilliSeconds()', () => {