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