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
path: root/spec
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-05 17:55:55 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-05 17:59:03 +0300
commite5a7ed3ac36aaa1045353e589dae98a29ca72f1e (patch)
treecbcc99d6d2bff548f739e9e196b0001fed8dc878 /spec
parent12fbce2eacdfbbc9bca7f7eaca6e5679ee1aaffd (diff)
Review changes
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/raven/index_spec.js3
-rw-r--r--spec/javascripts/raven/raven_config_spec.js4
2 files changed, 2 insertions, 5 deletions
diff --git a/spec/javascripts/raven/index_spec.js b/spec/javascripts/raven/index_spec.js
index 85ec1de4e4e..b5662cd0331 100644
--- a/spec/javascripts/raven/index_spec.js
+++ b/spec/javascripts/raven/index_spec.js
@@ -18,9 +18,10 @@ describe('RavenConfig options', () => {
sentry_dsn: sentryDsn,
current_user_id: currentUserId,
gitlab_url: gitlabUrl,
- is_production: isProduction,
};
+ process.env.NODE_ENV = isProduction;
+
spyOn(RavenConfig, 'init');
indexReturnValue = index();
diff --git a/spec/javascripts/raven/raven_config_spec.js b/spec/javascripts/raven/raven_config_spec.js
index 2a2b91fe948..a2d720760fc 100644
--- a/spec/javascripts/raven/raven_config_spec.js
+++ b/spec/javascripts/raven/raven_config_spec.js
@@ -157,10 +157,6 @@ describe('RavenConfig', () => {
RavenConfig.bindRavenErrors();
});
- it('should query for document using jquery', () => {
- expect(window.$).toHaveBeenCalledWith(document);
- });
-
it('should call .on', function () {
expect($document.on).toHaveBeenCalledWith('ajaxError.raven', RavenConfig.handleRavenErrors);
});