Commit 1c806738 authored by Martin Wortschack's avatar Martin Wortschack

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

Replace board service in mock data.js

See merge request gitlab-org/gitlab!20879
parents a6dc1781 d71c000e
---
title: removes references of BoardService
merge_request: 20879
author: nuwe1
type: other
import BoardService from '~/boards/services/board_service';
import boardsStore from '~/boards/stores/boards_store';
export const setMockEndpoints = (opts = {}) => {
......@@ -87,22 +86,6 @@ export const boardsMockInterceptor = config => {
return [200, body];
};
export const mockBoardService = (opts = {}) => {
const boardsEndpoint = opts.boardsEndpoint || '/test/issue-boards/-/boards.json';
const listsEndpoint = opts.listsEndpoint || '/test/-/boards/1/lists';
const bulkUpdatePath = opts.bulkUpdatePath || '';
const boardId = opts.boardId || '1';
boardsStore.setEndpoints({
boardsEndpoint,
listsEndpoint,
bulkUpdatePath,
boardId,
});
return new BoardService();
};
export const mockAssigneesList = [
{
id: 2,
......
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