This is an automated email from the ASF dual-hosted git repository.
heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
The following commit(s) were added to refs/heads/master by this push:
new 51293560 fix ui test for duration computation
51293560 is described below
commit 512935600080b5fad493bbb163d07fbefad13917
Author: Alex Heneveld <[email protected]>
AuthorDate: Mon Oct 10 12:15:44 2022 +0100
fix ui test for duration computation
---
ui-modules/utils/utils/momentp.spec.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-modules/utils/utils/momentp.spec.js
b/ui-modules/utils/utils/momentp.spec.js
index 4fa785c9..f2493911 100644
--- a/ui-modules/utils/utils/momentp.spec.js
+++ b/ui-modules/utils/utils/momentp.spec.js
@@ -50,7 +50,7 @@ describe('momentp', ()=> {
expect(mp.duration(8000)).toBe("8s");
expect(mp.duration(8123)).toBe("8.1s");
expect(mp.duration(10123)).toBe("10s");
- expect(mp.duration(59501)).toBe("1m 0s");
+ expect(mp.duration(59501)).toBe("60s");
expect(mp.duration(62123)).toBe("1m 2s");
expect(mp.duration(20*60000 + 2123)).toBe("20 mins");
expect(mp.duration(62123 + 60*60*1000)).toBe("1h 1m");