summaryrefslogtreecommitdiff
path: root/spec/javascripts/pipelines
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-06-05 16:25:59 -0500
committerClement Ho <ClemMakesApps@gmail.com>2017-06-05 16:25:59 -0500
commit67d3d0a488bf7db6bab7b07495f227984e9b6bc4 (patch)
tree7007166aefdf0a4a82a1f4c9ea8b575f5e8ea289 /spec/javascripts/pipelines
parent5578506eb1e7e911fa7b283e81b3751be370977b (diff)
downloadgitlab-ce-67d3d0a488bf7db6bab7b07495f227984e9b6bc4.tar.gz
Diffstat (limited to 'spec/javascripts/pipelines')
-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',