summaryrefslogtreecommitdiff
path: root/spec/frontend/snippets/test_utils.js
diff options
context:
space:
mode:
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) => ({