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:
authorJarka Kadlecova <jarka@gitlab.com>2017-07-26 10:57:56 +0300
committerJarka Kadlecova <jarka@gitlab.com>2017-07-27 08:51:36 +0300
commitaa2b3ff1e4c8bb725a96ed55906d142300ccf017 (patch)
tree5e834e50277c1c12a18e5dd1523eb8d93259d4de /spec/javascripts/integrations
parentf2da36f19661353cd1bd6788fbdf1a65e2d70f8d (diff)
Display specific error message when JIRA test fails
Diffstat (limited to 'spec/javascripts/integrations')
-rw-r--r--spec/javascripts/integrations/integration_settings_form_spec.js4
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');
});