Commit b737da50 authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Replace board service in board spec.js

parent dda58b7e
---
title: removes references of BoardService
merge_request: 20875
author: nuwe1
type: other
import Vue from 'vue'; import Vue from 'vue';
import Board from '~/boards/components/board'; import Board from '~/boards/components/board';
import List from '~/boards/models/list'; import List from '~/boards/models/list';
import { mockBoardService } from '../mock_data';
describe('Board component', () => { describe('Board component', () => {
let vm; let vm;
...@@ -35,13 +34,6 @@ describe('Board component', () => { ...@@ -35,13 +34,6 @@ describe('Board component', () => {
const setUpTests = (done, opts = {}) => { const setUpTests = (done, opts = {}) => {
loadFixtures('boards/show.html'); loadFixtures('boards/show.html');
gl.boardService = mockBoardService({
boardsEndpoint: '/',
listsEndpoint: '/',
bulkUpdatePath: '/',
boardId: 1,
});
createComponent(opts); createComponent(opts);
Vue.nextTick(done); Vue.nextTick(done);
...@@ -61,15 +53,6 @@ describe('Board component', () => { ...@@ -61,15 +53,6 @@ describe('Board component', () => {
}; };
describe('List', () => { describe('List', () => {
beforeEach(() => {
gl.boardService = mockBoardService({
boardsEndpoint: '/',
listsEndpoint: '/',
bulkUpdatePath: '/',
boardId: 1,
});
});
it('board is expandable when list type is closed', () => { it('board is expandable when list type is closed', () => {
expect(new List({ id: 1, list_type: 'closed' }).isExpandable).toBe(true); expect(new List({ id: 1, list_type: 'closed' }).isExpandable).toBe(true);
}); });
......
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