diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-19 23:13:57 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-19 23:13:57 +0300 |
commit | fa04b50b3c84e69765df7a0c9a182d9709ade398 (patch) | |
tree | 50af2b45cca9271715077c24222b4c671d0cb086 /spec/javascripts/raven/raven_config_spec.js | |
parent | 9d29eb7e292067fb980b4ca97fc6c3edac1dccec (diff) |
Read HEAD commit and use as releases value
Diffstat (limited to 'spec/javascripts/raven/raven_config_spec.js')
-rw-r--r-- | spec/javascripts/raven/raven_config_spec.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/spec/javascripts/raven/raven_config_spec.js b/spec/javascripts/raven/raven_config_spec.js index a2d720760fc..d2f4f9ac6fb 100644 --- a/spec/javascripts/raven/raven_config_spec.js +++ b/spec/javascripts/raven/raven_config_spec.js @@ -25,17 +25,9 @@ describe('RavenConfig', () => { }); describe('init', () => { - let options; + const options = {}; beforeEach(() => { - options = { - sentryDsn: '//sentryDsn', - ravenAssetUrl: '//ravenAssetUrl', - currentUserId: 1, - whitelistUrls: ['//gitlabUrl'], - isProduction: true, - }; - spyOn(RavenConfig, 'configure'); spyOn(RavenConfig, 'bindRavenErrors'); spyOn(RavenConfig, 'setUser'); @@ -84,6 +76,10 @@ describe('RavenConfig', () => { sentryDsn: '//sentryDsn', whitelistUrls: ['//gitlabUrl'], isProduction: true, + release: 'release', + tags: { + HEAD_COMMIT_SHA: 'headCommitSha', + }, }; ravenConfig = jasmine.createSpyObj('ravenConfig', ['shouldSendSample']); @@ -100,6 +96,8 @@ describe('RavenConfig', () => { it('should call Raven.config', () => { expect(Raven.config).toHaveBeenCalledWith(options.sentryDsn, { + release: options.release, + tags: options.tags, whitelistUrls: options.whitelistUrls, environment: 'production', ignoreErrors: ravenConfig.IGNORE_ERRORS, |