diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-15 21:07:43 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-15 21:07:43 +0000 |
commit | 9fe33f71995d8e3e83f0a30cb776aaa4a3ab4d70 (patch) | |
tree | 06886785856aceff58cfce209679677a60f141f3 /spec/frontend/lib | |
parent | 2eafcb0673f7d501d9e3fabde6e950a5dcc24fc2 (diff) | |
download | gitlab-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.js | 6 |
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'); |