summaryrefslogtreecommitdiff
path: root/spec/frontend/snippets/test_utils.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-06 09:09:11 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-06 09:09:11 +0000
commit19cd21a9c1a67b4359ab8386e5a64bea38cdc43a (patch)
tree3c3af91cda8483cd8aba7123dfbd19598556618d /spec/frontend/snippets/test_utils.js
parentb4d79e4b910389d348987dcd35c28d0162ea6480 (diff)
downloadgitlab-ce-19cd21a9c1a67b4359ab8386e5a64bea38cdc43a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/snippets/test_utils.js')
-rw-r--r--spec/frontend/snippets/test_utils.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/frontend/snippets/test_utils.js b/spec/frontend/snippets/test_utils.js
index 86262723157..fd389620d35 100644
--- a/spec/frontend/snippets/test_utils.js
+++ b/spec/frontend/snippets/test_utils.js
@@ -56,6 +56,15 @@ export const testEntries = {
content: CONTENT_2,
},
},
+ empty: {
+ id: 'empty',
+ diff: {
+ action: SNIPPET_BLOB_ACTION_CREATE,
+ filePath: '',
+ previousPath: '',
+ content: '',
+ },
+ },
};
export const createBlobFromTestEntry = ({ diff, origContent }, isOrig = false) => ({