Commit 59014e79 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'Replace-BoardService_in_board_spec.js' into 'master'

Replace board service in board spec.js

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