diff options
author | Fatih Acet <acetfatih@gmail.com> | 2019-01-07 18:23:53 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-01-31 01:18:13 +0300 |
commit | f1acd5051513ee815578f7311ca88ee54e79e323 (patch) | |
tree | b878c2a49a4098926ecb620c6bc05ae36c862d2d /spec/javascripts/issue_show | |
parent | 45eabf921a9bb90677d1e4f59544f0a7abcbc879 (diff) |
Show error message from backend
Diffstat (limited to 'spec/javascripts/issue_show')
-rw-r--r-- | spec/javascripts/issue_show/components/app_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/issue_show/components/app_spec.js b/spec/javascripts/issue_show/components/app_spec.js index 9b2b6b670c3..863d15570a0 100644 --- a/spec/javascripts/issue_show/components/app_spec.js +++ b/spec/javascripts/issue_show/components/app_spec.js @@ -292,8 +292,8 @@ describe('Issuable output', () => { it('shows error mesage from backend if exists', done => { const msg = 'Custom error message from backend'; - spyOn(vm.service, 'updateIssuable').and.callFake(() => - Promise.reject({ response: { data: { errors: msg } } }), // eslint-disable-line prefer-promise-reject-errors + spyOn(vm.service, 'updateIssuable').and.callFake( + () => Promise.reject({ response: { data: { errors: msg } } }), // eslint-disable-line prefer-promise-reject-errors ); vm.updateIssuable(); |