summaryrefslogtreecommitdiff
path: root/spec/javascripts/issue_show/components/app_spec.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-12 13:04:36 +0100
committerPhil Hughes <me@iamphill.com>2017-05-15 11:33:31 +0100
commit478812543ce82dbfc7a408706aa94ab870443735 (patch)
treef9cff2e05106d908e7d9056bff547275352c85d9 /spec/javascripts/issue_show/components/app_spec.js
parent3d553954d4bd93f0cde41e2a42d4c73443c5e2db (diff)
downloadgitlab-ce-478812543ce82dbfc7a408706aa94ab870443735.tar.gz
Moved json parsing out of service
[ci skip]
Diffstat (limited to 'spec/javascripts/issue_show/components/app_spec.js')
-rw-r--r--spec/javascripts/issue_show/components/app_spec.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/javascripts/issue_show/components/app_spec.js b/spec/javascripts/issue_show/components/app_spec.js
index 0af4d1e1f6a..1f46d836e1e 100644
--- a/spec/javascripts/issue_show/components/app_spec.js
+++ b/spec/javascripts/issue_show/components/app_spec.js
@@ -134,7 +134,9 @@ describe('Issuable output', () => {
spyOn(gl.utils, 'visitUrl');
spyOn(vm.service, 'deleteIssuable').and.callFake(() => new Promise((resolve) => {
resolve({
- path: '/test',
+ json() {
+ return { path: '/test' };
+ },
});
}));
@@ -154,7 +156,9 @@ describe('Issuable output', () => {
spyOn(vm.poll, 'stop');
spyOn(vm.service, 'deleteIssuable').and.callFake(() => new Promise((resolve) => {
resolve({
- path: '/test',
+ json() {
+ return { path: '/test' };
+ },
});
}));