Commit 608e5aca authored by Bryce Johnson's avatar Bryce Johnson

Fix up specs that depend on triggered_by.

parent bbce29e2
...@@ -38,7 +38,8 @@ export default { ...@@ -38,7 +38,8 @@ export default {
return this.mr.pipeline.triggered || []; return this.mr.pipeline.triggered || [];
}, },
triggeredBy() { triggeredBy() {
return this.mr.pipeline.triggered_by || []; const response = this.mr.pipeline.triggered_by;
return response ? [response] : [];
}, },
}, },
template: ` template: `
......
...@@ -9,7 +9,7 @@ describe('Linked pipeline mini list', () => { ...@@ -9,7 +9,7 @@ describe('Linked pipeline mini list', () => {
beforeEach(() => { beforeEach(() => {
this.component = new ListComponent({ this.component = new ListComponent({
propsData: { propsData: {
triggered_by: mockData.triggered_by, triggeredBy: [mockData.triggered_by],
}, },
}).$mount(); }).$mount();
}); });
......
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