diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-18 15:10:33 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-18 15:10:33 +0000 |
commit | d9e07a155e65cd4a7d2a1e0f10cd200a6b57371e (patch) | |
tree | 74c8de74729a462db976287c0b709c754dce5b6f /spec/frontend/__mocks__ | |
parent | f10eb9ebaefb0d6ff4ee7552dbf127dc70aaf27d (diff) | |
download | gitlab-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.js | 11 |
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'); }, |