diff options
author | kushalpandya <kushal@gitlab.com> | 2017-09-08 17:32:16 +0530 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-09-11 09:28:51 +0530 |
commit | ce884ad308e9dfb3a86f83eb570393d5a6815a4b (patch) | |
tree | fa19754407760446a74f30294b0f34d6673fdad2 /spec | |
parent | ce14fae5d43247a838debeb5dda7871845d127c8 (diff) | |
download | gitlab-ce-ce884ad308e9dfb3a86f83eb570393d5a6815a4b.tar.gz |
Remove confidential toggle checkbox and related code as no longer necessary37454-remove-confidential-cb-edit-issue
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/issue_show/components/app_spec.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/javascripts/issue_show/components/app_spec.js b/spec/javascripts/issue_show/components/app_spec.js index 39065814bc2..583a3a74d77 100644 --- a/spec/javascripts/issue_show/components/app_spec.js +++ b/spec/javascripts/issue_show/components/app_spec.js @@ -42,7 +42,6 @@ describe('Issuable output', () => { initialDescriptionText: '', markdownPreviewPath: '/', markdownDocsPath: '/', - isConfidential: false, projectNamespace: '/', projectPath: '/', }, @@ -157,30 +156,6 @@ describe('Issuable output', () => { }); }); - it('reloads the page if the confidential status has changed', (done) => { - spyOn(gl.utils, 'visitUrl'); - spyOn(vm.service, 'updateIssuable').and.callFake(() => new Promise((resolve) => { - resolve({ - json() { - return { - confidential: true, - web_url: location.pathname, - }; - }, - }); - })); - - vm.updateIssuable(); - - setTimeout(() => { - expect( - gl.utils.visitUrl, - ).toHaveBeenCalledWith(location.pathname); - - done(); - }); - }); - it('correctly updates issuable data', (done) => { spyOn(vm.service, 'updateIssuable').and.callFake(() => new Promise((resolve) => { resolve(); |