Fix header component spec
This commit is contained in:
parent
5578506eb1
commit
67d3d0a488
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue