diff options
Diffstat (limited to 'spec/frontend/custom_emoji/mock_data.js')
-rw-r--r-- | spec/frontend/custom_emoji/mock_data.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/frontend/custom_emoji/mock_data.js b/spec/frontend/custom_emoji/mock_data.js new file mode 100644 index 00000000000..f2b32bf1cfb --- /dev/null +++ b/spec/frontend/custom_emoji/mock_data.js @@ -0,0 +1,27 @@ +export const CUSTOM_EMOJI = [ + { + id: 'gid://gitlab/CustomEmoji/1', + name: 'confused_husky', + url: 'https://gitlab.com/custom_emoji/custom_emoji/-/raw/main/img/confused_husky.gif', + createdAt: 'created-at', + userPermissions: { + deleteCustomEmoji: false, + }, + }, +]; + +export const CREATED_CUSTOM_EMOJI = { + data: { + createCustomEmoji: { + errors: [], + }, + }, +}; + +export const CREATED_CUSTOM_EMOJI_WITH_ERROR = { + data: { + createCustomEmoji: { + errors: ['Test error'], + }, + }, +}; |