diff options
author | Phil Hughes <me@iamphill.com> | 2017-02-28 10:57:39 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-01 10:17:00 +0000 |
commit | e2575def9425012cd9f20e4488b6bcc730add102 (patch) | |
tree | 3588d0fa8ed5650454ed8d1f4b7115f4e7edf16b | |
parent | 9cd53cd8e797591cc5093180113c4860468ef95f (diff) | |
download | gitlab-ce-e2575def9425012cd9f20e4488b6bcc730add102.tar.gz |
Fixed eslint
-rw-r--r-- | spec/javascripts/boards/board_new_issue_spec.js | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/spec/javascripts/boards/board_new_issue_spec.js b/spec/javascripts/boards/board_new_issue_spec.js index 0e044caf658..ae1932ab6ac 100644 --- a/spec/javascripts/boards/board_new_issue_spec.js +++ b/spec/javascripts/boards/board_new_issue_spec.js @@ -1,4 +1,8 @@ /* global Vue */ +/* global boardsMockInterceptor */ +/* global BoardService */ +/* global List */ +/* global listObj */ import boardNewIssue from '~/boards/components/board_new_issue'; @@ -6,7 +10,7 @@ require('~/boards/models/list'); require('./mock_data'); require('es6-promise').polyfill(); -fdescribe('Issue boards new issue form', () => { +describe('Issue boards new issue form', () => { let vm; let list; const promiseReturn = { @@ -31,15 +35,13 @@ fdescribe('Issue boards new issue form', () => { setTimeout(() => { list = new List(listObj); - spyOn(gl.boardService, 'newIssue').and.callFake(() => { - return new Promise((resolve, reject) => { - if (vm.title === 'error') { - reject(); - } else { - resolve(promiseReturn); - } - }); - }); + spyOn(gl.boardService, 'newIssue').and.callFake(() => new Promise((resolve, reject) => { + if (vm.title === 'error') { + reject(); + } else { + resolve(promiseReturn); + } + })); vm = new BoardNewIssueComp({ propsData: { @@ -101,7 +103,7 @@ fdescribe('Issue boards new issue form', () => { }); it('enables button after submit', (done) => { - vm.title= 'submit issue'; + vm.title = 'submit issue'; setTimeout(() => { submitIssue(); |