From 6e1a7902f43785bf82084f9eb9cc963d81e3b83e Mon Sep 17 00:00:00 2001 From: Lukas Eipert Date: Mon, 28 May 2018 13:41:30 +0200 Subject: fix last lints --- spec/javascripts/sidebar/confidential_issue_sidebar_spec.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'spec/javascripts/sidebar') 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({ -- cgit v1.2.1