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:
-rw-r--r--spec/javascripts/pipelines/header_component_spec.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/javascripts/pipelines/header_component_spec.js b/spec/javascripts/pipelines/header_component_spec.js
index b8531350e43..cecc7ceb53d 100644
--- a/spec/javascripts/pipelines/header_component_spec.js
+++ b/spec/javascripts/pipelines/header_component_spec.js
@@ -10,6 +10,9 @@ describe('Pipeline details header', () => {
beforeEach(() => {
HeaderComponent = Vue.extend(headerComponent);
+ const threeWeeksAgo = new Date();
+ threeWeeksAgo.setDate(threeWeeksAgo.getDate() - 21);
+
props = {
pipeline: {
details: {
@@ -22,7 +25,7 @@ describe('Pipeline details header', () => {
},
},
id: 123,
- created_at: '2017-05-08T14:57:39.781Z',
+ created_at: threeWeeksAgo.toISOString(),
user: {
web_url: 'path',
name: 'Foo',