diff options
| author | Jarka Kadlecova <jarka@gitlab.com> | 2017-07-26 09:57:56 +0200 |
|---|---|---|
| committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-07-27 07:51:36 +0200 |
| commit | aa2b3ff1e4c8bb725a96ed55906d142300ccf017 (patch) | |
| tree | 5e834e50277c1c12a18e5dd1523eb8d93259d4de /spec/javascripts | |
| parent | f2da36f19661353cd1bd6788fbdf1a65e2d70f8d (diff) | |
| download | gitlab-ce-aa2b3ff1e4c8bb725a96ed55906d142300ccf017.tar.gz | |
Display specific error message when JIRA test fails32483-jira-error
Diffstat (limited to 'spec/javascripts')
| -rw-r--r-- | spec/javascripts/integrations/integration_settings_form_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/integrations/integration_settings_form_spec.js b/spec/javascripts/integrations/integration_settings_form_spec.js index 45909d4e70e..3daeb91b1e2 100644 --- a/spec/javascripts/integrations/integration_settings_form_spec.js +++ b/spec/javascripts/integrations/integration_settings_form_spec.js @@ -135,10 +135,10 @@ describe('IntegrationSettingsForm', () => { integrationSettingsForm.testSettings(formData); - deferred.resolve({ error: true, message: errorMessage }); + deferred.resolve({ error: true, message: errorMessage, service_response: 'some error' }); const $flashContainer = $('.flash-container'); - expect($flashContainer.find('.flash-text').text()).toEqual(errorMessage); + expect($flashContainer.find('.flash-text').text()).toEqual('Test failed. some error'); expect($flashContainer.find('.flash-action')).toBeDefined(); expect($flashContainer.find('.flash-action').text()).toEqual('Save anyway'); }); |
