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:
'
Summary
',
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: 'issuable-status-badge-open',
statusIcon: 'issues',
statusIconClass: 'gl-sm-display-none',
taskCompletionStatus: {
completedCount: 0,
count: 5,
},
};