diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-20 09:07:57 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-20 09:07:57 +0000 |
commit | 7881eb30eaa8b01dbcfe87faa09927c75c7d6e45 (patch) | |
tree | 298bc8d2c62b2f2c29cb8ecbcf3de3eaaa6466d9 /spec/javascripts/boards/mock_data.js | |
parent | 64b66e0cb6d1bfd27abf24e06653f00bddb60597 (diff) | |
download | gitlab-ce-7881eb30eaa8b01dbcfe87faa09927c75c7d6e45.tar.gz |
Add latest changes from gitlab-org/gitlab@12-6-stable-ee
Diffstat (limited to 'spec/javascripts/boards/mock_data.js')
-rw-r--r-- | spec/javascripts/boards/mock_data.js | 98 |
1 files changed, 3 insertions, 95 deletions
diff --git a/spec/javascripts/boards/mock_data.js b/spec/javascripts/boards/mock_data.js index 41b8f567e08..fcb5d9cfa08 100644 --- a/spec/javascripts/boards/mock_data.js +++ b/spec/javascripts/boards/mock_data.js @@ -1,40 +1,7 @@ -import BoardService from '~/boards/services/board_service'; import boardsStore from '~/boards/stores/boards_store'; +import { listObj } from '../../frontend/boards/mock_data'; -export const boardObj = { - id: 1, - name: 'test', - milestone_id: null, -}; - -export const listObj = { - id: 300, - position: 0, - title: 'Test', - list_type: 'label', - weight: 3, - label: { - id: 5000, - title: 'Test', - color: 'red', - description: 'testing;', - textColor: 'white', - }, -}; - -export const listObjDuplicate = { - id: listObj.id, - position: 1, - title: 'Test', - list_type: 'label', - weight: 3, - label: { - id: listObj.label.id, - title: 'Test', - color: 'red', - description: 'testing;', - }, -}; +export * from '../../frontend/boards/mock_data'; export const BoardsMockData = { GET: { @@ -73,7 +40,7 @@ export const boardsMockInterceptor = config => { return [200, body]; }; -export const mockBoardService = (opts = {}) => { +export const setMockEndpoints = (opts = {}) => { const boardsEndpoint = opts.boardsEndpoint || '/test/issue-boards/-/boards.json'; const listsEndpoint = opts.listsEndpoint || '/test/-/boards/1/lists'; const bulkUpdatePath = opts.bulkUpdatePath || ''; @@ -85,63 +52,4 @@ export const mockBoardService = (opts = {}) => { bulkUpdatePath, boardId, }); - - return new BoardService(); -}; - -export const mockAssigneesList = [ - { - id: 2, - name: 'Terrell Graham', - username: 'monserrate.gleichner', - state: 'active', - avatar_url: 'https://www.gravatar.com/avatar/598fd02741ac58b88854a99d16704309?s=80&d=identicon', - web_url: 'http://127.0.0.1:3001/monserrate.gleichner', - path: '/monserrate.gleichner', - }, - { - id: 12, - name: 'Susy Johnson', - username: 'tana_harvey', - state: 'active', - avatar_url: 'https://www.gravatar.com/avatar/e021a7b0f3e4ae53b5068d487e68c031?s=80&d=identicon', - web_url: 'http://127.0.0.1:3001/tana_harvey', - path: '/tana_harvey', - }, - { - id: 20, - name: 'Conchita Eichmann', - username: 'juliana_gulgowski', - state: 'active', - avatar_url: 'https://www.gravatar.com/avatar/c43c506cb6fd7b37017d3b54b94aa937?s=80&d=identicon', - web_url: 'http://127.0.0.1:3001/juliana_gulgowski', - path: '/juliana_gulgowski', - }, - { - id: 6, - name: 'Bryce Turcotte', - username: 'melynda', - state: 'active', - avatar_url: 'https://www.gravatar.com/avatar/cc2518f2c6f19f8fac49e1a5ee092a9b?s=80&d=identicon', - web_url: 'http://127.0.0.1:3001/melynda', - path: '/melynda', - }, - { - id: 1, - name: 'Administrator', - username: 'root', - state: 'active', - avatar_url: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', - web_url: 'http://127.0.0.1:3001/root', - path: '/root', - }, -]; - -export const mockMilestone = { - id: 1, - state: 'active', - title: 'Milestone title', - description: 'Harum corporis aut consequatur quae dolorem error sequi quia.', - start_date: '2018-01-01', - due_date: '2019-12-31', }; |