Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/test_bundle.js')
-rw-r--r--spec/javascripts/test_bundle.js13
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