Commit 7cfae68e authored by Mike Greiling's avatar Mike Greiling

fix broken frontend specs

parent 40805f25
...@@ -56,7 +56,8 @@ export default { ...@@ -56,7 +56,8 @@ export default {
}, },
title: { title: {
type: String, type: String,
required: true, required: false,
default: 'Related issues',
}, },
}, },
......
...@@ -14,9 +14,15 @@ describe('EpicShowApp', () => { ...@@ -14,9 +14,15 @@ describe('EpicShowApp', () => {
let sidebarVm; let sidebarVm;
const interceptor = (request, next) => { const interceptor = (request, next) => {
next(request.respondWith(JSON.stringify(issueShowData.initialRequest), { if (request.url === '/realtime_changes') {
status: 200, next(request.respondWith(JSON.stringify(issueShowData.initialRequest), {
})); status: 200,
}));
} else {
next(request.respondWith(null, {
status: 404,
}));
}
}; };
beforeEach(() => { beforeEach(() => {
......
export const contentProps = { export const contentProps = {
endpoint: '', endpoint: '',
canAdmin: true,
canUpdate: true, canUpdate: true,
canDestroy: false, canDestroy: false,
markdownPreviewPath: '', markdownPreviewPath: '',
markdownDocsPath: '', markdownDocsPath: '',
issueLinksEndpoint: '/',
groupPath: '', groupPath: '',
initialTitleHtml: '', initialTitleHtml: '',
initialTitleText: '', initialTitleText: '',
......
...@@ -74,7 +74,7 @@ describe('RelatedIssuesBlock', () => { ...@@ -74,7 +74,7 @@ describe('RelatedIssuesBlock', () => {
beforeEach(() => { beforeEach(() => {
vm = new RelatedIssuesBlock({ vm = new RelatedIssuesBlock({
propsData: { propsData: {
canAddRelatedIssues: true, canAdmin: true,
}, },
}).$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