summaryrefslogtreecommitdiff
path: root/spec/frontend/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-15 21:07:43 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-15 21:07:43 +0000
commit9fe33f71995d8e3e83f0a30cb776aaa4a3ab4d70 (patch)
tree06886785856aceff58cfce209679677a60f141f3 /spec/frontend/lib
parent2eafcb0673f7d501d9e3fabde6e950a5dcc24fc2 (diff)
downloadgitlab-ce-9fe33f71995d8e3e83f0a30cb776aaa4a3ab4d70.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/lib')
-rw-r--r--spec/frontend/lib/utils/unit_format/index_spec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/lib/utils/unit_format/index_spec.js b/spec/frontend/lib/utils/unit_format/index_spec.js
index dc9d6ece48e..057d7aded02 100644
--- a/spec/frontend/lib/utils/unit_format/index_spec.js
+++ b/spec/frontend/lib/utils/unit_format/index_spec.js
@@ -2,6 +2,7 @@ import {
number,
percent,
percentHundred,
+ days,
seconds,
milliseconds,
decimalBytes,
@@ -72,6 +73,11 @@ describe('unit_format', () => {
expect(percentHundred(1000)).toBe('1,000%');
});
+ it('days', () => {
+ expect(days(1)).toBe('1d');
+ expect(days(1, undefined, { unitSeparator: '/' })).toBe('1/d');
+ });
+
it('seconds', () => {
expect(seconds(1)).toBe('1s');
expect(seconds(1, undefined, { unitSeparator: ' ' })).toBe('1 s');