diff options
Diffstat (limited to 'spec/frontend/vue_shared/issuable/show/mock_data.js')
-rw-r--r-- | spec/frontend/vue_shared/issuable/show/mock_data.js | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/spec/frontend/vue_shared/issuable/show/mock_data.js b/spec/frontend/vue_shared/issuable/show/mock_data.js new file mode 100644 index 00000000000..f5f3ed58655 --- /dev/null +++ b/spec/frontend/vue_shared/issuable/show/mock_data.js @@ -0,0 +1,45 @@ +import { mockIssuable as issuable } from 'jest/vue_shared/issuable/list/mock_data'; + +export const mockIssuable = { + ...issuable, + id: 'gid://gitlab/Issue/30', + title: 'Sample title', + titleHtml: 'Sample title', + description: '# Summary', + descriptionHtml: + '<h1 data-sourcepos="1:1-1:25" dir="auto">
<a id="user-content-magnoque-it-lurida-deus" class="anchor" href="#magnoque-it-lurida-deus" aria-hidden="true"></a>Summary</h1>', + state: 'opened', + blocked: false, + confidential: false, + updatedBy: issuable.author, + type: 'ISSUE', + currentUserTodos: { + nodes: [ + { + id: 'gid://gitlab/Todo/489', + state: 'done', + }, + ], + }, +}; + +export const mockIssuableShowProps = { + issuable: mockIssuable, + descriptionHelpPath: '/help/user/markdown', + descriptionPreviewPath: '/gitlab-org/gitlab-shell/preview_markdown', + taskListUpdatePath: `${mockIssuable.webUrl}.json`, + taskListLockVersion: 1, + editFormVisible: false, + enableAutocomplete: true, + enableAutosave: true, + enableZenMode: true, + enableTaskList: true, + enableEdit: true, + showFieldTitle: false, + statusBadgeClass: 'status-box-open', + statusIcon: 'issue-open-m', + taskCompletionStatus: { + completedCount: 0, + count: 5, + }, +}; |