summaryrefslogtreecommitdiff
path: root/spec/frontend/__mocks__
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-18 15:10:33 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-18 15:10:33 +0000
commitd9e07a155e65cd4a7d2a1e0f10cd200a6b57371e (patch)
tree74c8de74729a462db976287c0b709c754dce5b6f /spec/frontend/__mocks__
parentf10eb9ebaefb0d6ff4ee7552dbf127dc70aaf27d (diff)
downloadgitlab-ce-d9e07a155e65cd4a7d2a1e0f10cd200a6b57371e.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/__mocks__')
-rw-r--r--spec/frontend/__mocks__/@toast-ui/vue-editor/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/frontend/__mocks__/@toast-ui/vue-editor/index.js b/spec/frontend/__mocks__/@toast-ui/vue-editor/index.js
index 726ed0fa030..9fee8e18d26 100644
--- a/spec/frontend/__mocks__/@toast-ui/vue-editor/index.js
+++ b/spec/frontend/__mocks__/@toast-ui/vue-editor/index.js
@@ -17,6 +17,17 @@ export const Editor = {
type: String,
},
},
+ created() {
+ const mockEditorApi = {
+ eventManager: {
+ addEventType: jest.fn(),
+ listen: jest.fn(),
+ removeEventHandler: jest.fn(),
+ },
+ };
+
+ this.$emit('load', mockEditorApi);
+ },
render(h) {
return h('div');
},