diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/frontend/batch_comments/mock_data.js | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/frontend/batch_comments/mock_data.js')
-rw-r--r-- | spec/frontend/batch_comments/mock_data.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/frontend/batch_comments/mock_data.js b/spec/frontend/batch_comments/mock_data.js new file mode 100644 index 00000000000..c50fea94fe3 --- /dev/null +++ b/spec/frontend/batch_comments/mock_data.js @@ -0,0 +1,27 @@ +import { TEST_HOST } from 'spec/test_constants'; + +export const createDraft = () => ({ + author: { + id: 1, + name: 'Test', + username: 'test', + state: 'active', + avatar_url: TEST_HOST, + }, + current_user: { can_edit: true, can_award_emoji: false, can_resolve: false }, + discussion_id: null, + file_hash: null, + file_path: null, + id: 1, + line_code: null, + merge_request_id: 1, + note: 'a', + note_html: '<p>Test</p>', + noteable_type: 'MergeRequest', + references: { users: [], commands: '' }, + resolve_discussion: false, + isDraft: true, + position: null, +}); + +export default () => {}; |