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:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-14 09:06:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-14 09:06:26 +0300
commitd9251dac4c8f9e27f1e2db4b537d47d7d5a9e5be (patch)
treea57ef4e98f815acc864bfd523e1436d3774fa05a /spec/javascripts/lib
parent29c01c6c91558358c37ba45b03f240632bfb918d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts/lib')
-rw-r--r--spec/javascripts/lib/utils/tick_formats_spec.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/spec/javascripts/lib/utils/tick_formats_spec.js b/spec/javascripts/lib/utils/tick_formats_spec.js
deleted file mode 100644
index 283989b4fc8..00000000000
--- a/spec/javascripts/lib/utils/tick_formats_spec.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import { dateTickFormat, initDateFormats } from '~/lib/utils/tick_formats';
-
-import { setLanguage } from '../../helpers/locale_helper';
-
-describe('tick formats', () => {
- describe('dateTickFormat', () => {
- beforeAll(() => {
- setLanguage('de');
- initDateFormats();
- });
-
- afterAll(() => {
- setLanguage(null);
- });
-
- it('returns year for first of January', () => {
- const tick = dateTickFormat(new Date('2001-01-01'));
-
- expect(tick).toBe('2001');
- });
-
- it('returns month for first of February', () => {
- const tick = dateTickFormat(new Date('2001-02-01'));
-
- expect(tick).toBe('Februar');
- });
-
- it('returns day and month for second of February', () => {
- const tick = dateTickFormat(new Date('2001-02-02'));
-
- expect(tick).toBe('2. Feb.');
- });
-
- it('ignores time', () => {
- const tick = dateTickFormat(new Date('2001-02-02 12:34:56'));
-
- expect(tick).toBe('2. Feb.');
- });
- });
-});