diff options
Diffstat (limited to 'spec/frontend/lib')
-rw-r--r-- | spec/frontend/lib/utils/datetime/date_calculation_utility_spec.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/frontend/lib/utils/datetime/date_calculation_utility_spec.js b/spec/frontend/lib/utils/datetime/date_calculation_utility_spec.js index 8d6ace165ab..055d57d6ada 100644 --- a/spec/frontend/lib/utils/datetime/date_calculation_utility_spec.js +++ b/spec/frontend/lib/utils/datetime/date_calculation_utility_spec.js @@ -3,9 +3,7 @@ import { newDateAsLocaleTime, nSecondsAfter, nSecondsBefore, - isToday, } from '~/lib/utils/datetime/date_calculation_utility'; -import { useFakeDate } from 'helpers/fake_date'; describe('newDateAsLocaleTime', () => { it.each` @@ -68,19 +66,3 @@ describe('nSecondsBefore', () => { expect(nSecondsBefore(date, seconds)).toEqual(expected); }); }); - -describe('isToday', () => { - useFakeDate(2022, 11, 5); - - describe('when date is today', () => { - it('returns `true`', () => { - expect(isToday(new Date(2022, 11, 5))).toBe(true); - }); - }); - - describe('when date is not today', () => { - it('returns `false`', () => { - expect(isToday(new Date(2022, 11, 6))).toBe(false); - }); - }); -}); |