Commit b4770826 authored by Eulyeon Ko's avatar Eulyeon Ko

Remove mediator from the spec

parent 6695c072
......@@ -9,7 +9,6 @@ import { ISSUABLE_TYPE_ISSUE, ISSUABLE_TYPE_MR } from './constants';
describe('IssuableLockForm', () => {
let wrapper;
let store;
let mediator;
let issuableType; // Either ISSUABLE_TYPE_ISSUE or ISSUABLE_TYPE_MR
const setIssuableType = pageType => {
......@@ -21,15 +20,6 @@ describe('IssuableLockForm', () => {
const findEditLink = () => wrapper.find('[data-testid="edit-link"]');
const findEditForm = () => wrapper.find(EditForm);
const initMediator = () => {
mediator = {
service: {
update: Promise.resolve(true),
},
store: {},
};
};
const initStore = isLocked => {
if (issuableType === ISSUABLE_TYPE_ISSUE) {
store = createStore();
......@@ -45,7 +35,6 @@ describe('IssuableLockForm', () => {
store,
propsData: {
isEditable: true,
mediator,
...props,
},
});
......@@ -62,7 +51,6 @@ describe('IssuableLockForm', () => {
`('In $pageType page', ({ pageType }) => {
beforeEach(() => {
setIssuableType(pageType);
initMediator();
});
describe.each`
......
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