diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-05 17:55:55 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-05 17:59:03 +0300 |
commit | e5a7ed3ac36aaa1045353e589dae98a29ca72f1e (patch) | |
tree | cbcc99d6d2bff548f739e9e196b0001fed8dc878 /spec/javascripts/raven | |
parent | 12fbce2eacdfbbc9bca7f7eaca6e5679ee1aaffd (diff) |
Review changes
Diffstat (limited to 'spec/javascripts/raven')
-rw-r--r-- | spec/javascripts/raven/index_spec.js | 3 | ||||
-rw-r--r-- | spec/javascripts/raven/raven_config_spec.js | 4 |
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); }); |