diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-01 11:18:58 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-01 11:18:58 +0000 |
commit | cc93c8755130905c57da47f620fdbb5653a264e4 (patch) | |
tree | 92f145dfcb5ec83d2fd2bd91c7671318a95ecd95 /spec/javascripts/boards | |
parent | 8708347c244e2fb57912a70b5bece251f7b16ef4 (diff) | |
download | gitlab-ce-cc93c8755130905c57da47f620fdbb5653a264e4.tar.gz |
Fixed frontend specs
Diffstat (limited to 'spec/javascripts/boards')
-rw-r--r-- | spec/javascripts/boards/boards_store_spec.js.es6 | 3 | ||||
-rw-r--r-- | spec/javascripts/boards/list_spec.js.es6 | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/boards/boards_store_spec.js.es6 b/spec/javascripts/boards/boards_store_spec.js.es6 index 55bcd2572bf..5ced5e9b0b9 100644 --- a/spec/javascripts/boards/boards_store_spec.js.es6 +++ b/spec/javascripts/boards/boards_store_spec.js.es6 @@ -1,5 +1,3 @@ -window.ES6Promise = require('vendor/es6-promise.auto'); -window.ES6Promise.polyfill(); /* eslint-disable comma-dangle, one-var, no-unused-vars */ /* global Vue */ /* global BoardService */ @@ -16,6 +14,7 @@ require('~/boards/models/user'); require('~/boards/services/board_service'); require('~/boards/stores/boards_store'); require('./mock_data'); +require('es6-promise').polyfill(); describe('Store', () => { beforeEach(() => { diff --git a/spec/javascripts/boards/list_spec.js.es6 b/spec/javascripts/boards/list_spec.js.es6 index c8a18af7198..d49d3af33d9 100644 --- a/spec/javascripts/boards/list_spec.js.es6 +++ b/spec/javascripts/boards/list_spec.js.es6 @@ -103,6 +103,7 @@ describe('List model', () => { listDup.updateIssueLabel(list, issue); - expect(gl.boardService.moveIssue).toHaveBeenCalledWith(issue.id, list.id, listDup.id); + expect(gl.boardService.moveIssue) + .toHaveBeenCalledWith(issue.id, list.id, listDup.id, undefined, undefined); }); }); |