diff options
Diffstat (limited to 'spec/frontend/boards/mock_data.js')
-rw-r--r-- | spec/frontend/boards/mock_data.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/frontend/boards/mock_data.js b/spec/frontend/boards/mock_data.js index 50c0a85fc70..58f67231d55 100644 --- a/spec/frontend/boards/mock_data.js +++ b/spec/frontend/boards/mock_data.js @@ -2,6 +2,7 @@ /* global List */ import Vue from 'vue'; +import { keyBy } from 'lodash'; import '~/boards/models/list'; import '~/boards/models/issue'; import boardsStore from '~/boards/stores/boards_store'; @@ -175,6 +176,14 @@ export const mockIssue = { }, }; +export const mockActiveIssue = { + ...mockIssue, + id: 436, + iid: '27', + subscribed: false, + emailsDisabled: false, +}; + export const mockIssueWithModel = new ListIssue(mockIssue); export const mockIssue2 = { @@ -290,6 +299,7 @@ export const mockLists = [ assignee: null, milestone: null, loading: false, + issuesSize: 1, }, { id: 'gid://gitlab/List/2', @@ -307,9 +317,12 @@ export const mockLists = [ assignee: null, milestone: null, loading: false, + issuesSize: 0, }, ]; +export const mockListsById = keyBy(mockLists, 'id'); + export const mockListsWithModel = mockLists.map(listMock => Vue.observable(new List({ ...listMock, doNotFetchIssues: true })), ); @@ -319,6 +332,23 @@ export const mockIssuesByListId = { 'gid://gitlab/List/2': mockIssues.map(({ id }) => id), }; +export const participants = [ + { + id: '1', + username: 'test', + name: 'test', + avatar: '', + avatarUrl: '', + }, + { + id: '2', + username: 'hello', + name: 'hello', + avatar: '', + avatarUrl: '', + }, +]; + export const issues = { [mockIssue.id]: mockIssue, [mockIssue2.id]: mockIssue2, |