Commit ba8f77d9 authored by Florie Guibert's avatar Florie Guibert

Boards - Do no use groupId to check if board is for group

Review feedback
parent 03fe9386
/* global List */ /* global List */
import { mount, createLocalVue } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import MockAdapter from 'axios-mock-adapter'; import MockAdapter from 'axios-mock-adapter';
import Vue from 'vue'; import Vue from 'vue';
import Vuex from 'vuex'; import Vuex from 'vuex';
...@@ -11,9 +11,7 @@ import axios from '~/lib/utils/axios_utils'; ...@@ -11,9 +11,7 @@ import axios from '~/lib/utils/axios_utils';
import '~/boards/models/list'; import '~/boards/models/list';
import { listObj, boardsMockInterceptor } from './mock_data'; import { listObj, boardsMockInterceptor } from './mock_data';
const localVue = createLocalVue(); Vue.use(Vuex);
localVue.use(Vuex);
describe('Issue boards new issue form', () => { describe('Issue boards new issue form', () => {
let wrapper; let wrapper;
...@@ -58,7 +56,6 @@ describe('Issue boards new issue form', () => { ...@@ -58,7 +56,6 @@ describe('Issue boards new issue form', () => {
list, list,
}, },
store, store,
localVue,
provide: { provide: {
groupId: null, groupId: null,
}, },
......
...@@ -30,7 +30,7 @@ describe('Issue boards new issue form', () => { ...@@ -30,7 +30,7 @@ describe('Issue boards new issue form', () => {
const store = new Vuex.Store({ const store = new Vuex.Store({
state: { selectedProject: mockGroupProjects[0] }, state: { selectedProject: mockGroupProjects[0] },
actions: { addListNewIssue: addListNewIssuesSpy }, actions: { addListNewIssue: addListNewIssuesSpy },
getters: { isGroupBoard: () => false }, getters: { isGroupBoard: () => false, isProjectBoard: () => true },
}); });
wrapper = shallowMount(BoardNewIssue, { wrapper = shallowMount(BoardNewIssue, {
......
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