diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /spec/javascripts | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/test_bundle.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index b81804def57..b37a53515a6 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -1,5 +1,5 @@ /* eslint-disable - jasmine/no-global-setup, jasmine/no-unsafe-spy, no-underscore-dangle, no-console + jasmine/no-global-setup, no-underscore-dangle, no-console */ import $ from 'jquery'; @@ -81,17 +81,6 @@ window.addEventListener('unhandledrejection', event => { console.error(event.reason.stack || event.reason); }); -// Add global function to spy on a module's dependencies via rewire -window.spyOnDependency = (module, name) => { - const dependency = module.__GetDependency__(name); - const spy = jasmine.createSpy(name, dependency); - module.__Rewire__(name, spy); - return spy; -}; - -// Reset any rewired modules after each test (see babel-plugin-rewire) -afterEach(__rewire_reset_all__); // eslint-disable-line - // HACK: Chrome 59 disconnects if there are too many synchronous tests in a row // because it appears to lock up the thread that communicates to Karma's socket // This async beforeEach gets called on every spec and releases the JS thread long |