Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/lib/utils/datetime/date_format_utility_spec.js')
-rw-r--r--spec/frontend/lib/utils/datetime/date_format_utility_spec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/frontend/lib/utils/datetime/date_format_utility_spec.js b/spec/frontend/lib/utils/datetime/date_format_utility_spec.js
index 65018fe1625..79b09654f00 100644
--- a/spec/frontend/lib/utils/datetime/date_format_utility_spec.js
+++ b/spec/frontend/lib/utils/datetime/date_format_utility_spec.js
@@ -122,12 +122,12 @@ describe('date_format_utility.js', () => {
describe('formatTimeAsSummary', () => {
it.each`
unit | value | result
- ${'months'} | ${1.5} | ${'1.5M'}
- ${'weeks'} | ${1.25} | ${'1.5w'}
- ${'days'} | ${2} | ${'2d'}
- ${'hours'} | ${10} | ${'10h'}
- ${'minutes'} | ${20} | ${'20m'}
- ${'seconds'} | ${10} | ${'<1m'}
+ ${'months'} | ${1.5} | ${'1.5 months'}
+ ${'weeks'} | ${1.25} | ${'1.5 weeks'}
+ ${'days'} | ${2} | ${'2 days'}
+ ${'hours'} | ${10} | ${'10 hours'}
+ ${'minutes'} | ${20} | ${'20 minutes'}
+ ${'seconds'} | ${10} | ${'<1 minute'}
${'seconds'} | ${0} | ${'-'}
`('will format $value $unit to $result', ({ unit, value, result }) => {
expect(utils.formatTimeAsSummary({ [unit]: value })).toBe(result);