diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 11:18:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 11:18:50 +0000 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/frontend/test_setup.js | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) | |
download | gitlab-ce-8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781.tar.gz |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/frontend/test_setup.js')
-rw-r--r-- | spec/frontend/test_setup.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/frontend/test_setup.js b/spec/frontend/test_setup.js index e216f49630f..49eae715a45 100644 --- a/spec/frontend/test_setup.js +++ b/spec/frontend/test_setup.js @@ -43,15 +43,6 @@ Object.assign(global, { preloadFixtures() {}, }); -Object.assign(global, { - MutationObserver() { - return { - disconnect() {}, - observe() {}, - }; - }, -}); - // custom-jquery-matchers was written for an old Jest version, we need to make it compatible Object.entries(jqueryMatchers).forEach(([matcherName, matcherFactory]) => { // Don't override existing Jest matcher @@ -69,12 +60,6 @@ expect.extend(customMatchers); // Tech debt issue TBD testUtilsConfig.logModifiedComponents = false; -// Basic stub for MutationObserver -global.MutationObserver = () => ({ - disconnect: () => {}, - observe: () => {}, -}); - Object.assign(global, { requestIdleCallback(cb) { const start = Date.now(); |