summaryrefslogtreecommitdiff
path: root/spec/javascripts/sidebar
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2018-05-28 13:41:30 +0200
committerLukas Eipert <leipert@gitlab.com>2018-05-29 18:42:51 +0200
commit6e1a7902f43785bf82084f9eb9cc963d81e3b83e (patch)
tree4a7955c76d471a3102ade87e5359d60669a23440 /spec/javascripts/sidebar
parent5777057325d413f4616f0459c5d63581634f4e42 (diff)
downloadgitlab-ce-6e1a7902f43785bf82084f9eb9cc963d81e3b83e.tar.gz
fix last lints
Diffstat (limited to 'spec/javascripts/sidebar')
-rw-r--r--spec/javascripts/sidebar/confidential_issue_sidebar_spec.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/javascripts/sidebar/confidential_issue_sidebar_spec.js b/spec/javascripts/sidebar/confidential_issue_sidebar_spec.js
index 0c173062835..6110d5d89ac 100644
--- a/spec/javascripts/sidebar/confidential_issue_sidebar_spec.js
+++ b/spec/javascripts/sidebar/confidential_issue_sidebar_spec.js
@@ -8,10 +8,7 @@ describe('Confidential Issue Sidebar Block', () => {
beforeEach(() => {
const Component = Vue.extend(confidentialIssueSidebar);
const service = {
- update: () => new Promise((resolve, reject) => {
- resolve(true);
- reject('failed!');
- }),
+ update: () => Promise.resolve(true),
};
vm1 = new Component({