summaryrefslogtreecommitdiff
path: root/spec/frontend/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-09 00:08:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-09 00:08:06 +0000
commit496e1ea9716836b3d8cb0d556d23692c0e68976b (patch)
tree21e174bd2159044d053ff74ba3b81b8041fcd6bf /spec/frontend/lib
parent1690313142e39075d231271bfdbc9ad95957106a (diff)
downloadgitlab-ce-496e1ea9716836b3d8cb0d556d23692c0e68976b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/lib')
-rw-r--r--spec/frontend/lib/utils/datetime/date_calculation_utility_spec.js18
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);
- });
- });
-});