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

fix broken frontend specs

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