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