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/__helpers__/fake_date_spec.js')
-rw-r--r--spec/frontend/__helpers__/fake_date_spec.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/spec/frontend/__helpers__/fake_date_spec.js b/spec/frontend/__helpers__/fake_date_spec.js
deleted file mode 100644
index b3ed13e238a..00000000000
--- a/spec/frontend/__helpers__/fake_date_spec.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import { createFakeDateClass, DEFAULT_ARGS, useRealDate } from './fake_date';
-
-describe('spec/helpers/fake_date', () => {
- describe('createFakeDateClass', () => {
- let FakeDate;
-
- beforeAll(() => {
- useRealDate();
- });
-
- beforeEach(() => {
- FakeDate = createFakeDateClass(DEFAULT_ARGS);
- });
-
- it('should use default args', () => {
- expect(new FakeDate()).toMatchInlineSnapshot(`2020-07-06T00:00:00.000Z`);
- });
-
- it('should use default args when called as a function', () => {
- expect(FakeDate()).toMatchInlineSnapshot(
- `"Mon Jul 06 2020 00:00:00 GMT+0000 (Greenwich Mean Time)"`,
- );
- });
-
- it('should have deterministic now()', () => {
- expect(FakeDate.now()).toMatchInlineSnapshot(`1593993600000`);
- });
-
- it('should be instanceof Date', () => {
- expect(new FakeDate()).toBeInstanceOf(Date);
- });
-
- it('should be instanceof self', () => {
- expect(new FakeDate()).toBeInstanceOf(FakeDate);
- });
- });
-});