Commit 67d3d0a4 authored by Clement Ho's avatar Clement Ho

Fix header component spec

parent 5578506e
...@@ -10,6 +10,9 @@ describe('Pipeline details header', () => { ...@@ -10,6 +10,9 @@ describe('Pipeline details header', () => {
beforeEach(() => { beforeEach(() => {
HeaderComponent = Vue.extend(headerComponent); HeaderComponent = Vue.extend(headerComponent);
const threeWeeksAgo = new Date();
threeWeeksAgo.setDate(threeWeeksAgo.getDate() - 21);
props = { props = {
pipeline: { pipeline: {
details: { details: {
...@@ -22,7 +25,7 @@ describe('Pipeline details header', () => { ...@@ -22,7 +25,7 @@ describe('Pipeline details header', () => {
}, },
}, },
id: 123, id: 123,
created_at: '2017-05-08T14:57:39.781Z', created_at: threeWeeksAgo.toISOString(),
user: { user: {
web_url: 'path', web_url: 'path',
name: 'Foo', name: 'Foo',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment