diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-10 18:29:55 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-17 17:17:39 +0100 |
commit | 63a4daa555477432663a8dceaf012e2dcd4ca7fa (patch) | |
tree | f51f7f87f6bbc48094b79dfabf4c136f9ec6f987 /spec/javascripts | |
parent | 3f769e7848d30d0cc26f9e4043afd34b1631d62f (diff) | |
download | gitlab-ce-63a4daa555477432663a8dceaf012e2dcd4ca7fa.tar.gz |
Fixed failing teaspoon tests
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/boards/boards_store_spec.js.es6 | 9 | ||||
-rw-r--r-- | spec/javascripts/boards/issue_spec.js.es6 | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/spec/javascripts/boards/boards_store_spec.js.es6 b/spec/javascripts/boards/boards_store_spec.js.es6 index c3c979a2a7f..ef59bac6e56 100644 --- a/spec/javascripts/boards/boards_store_spec.js.es6 +++ b/spec/javascripts/boards/boards_store_spec.js.es6 @@ -54,6 +54,7 @@ setTimeout(() => { expect(list.issues.length).toBe(1); + expect(list.issues[0].id).toBe(1); done(); }, 0); }); @@ -135,10 +136,10 @@ expect(BoardsStore.state.lists.length).toBe(2); - setTimeout(() => { - const list = BoardsStore.findList('id', 1); - const listTwo = BoardsStore.findList('id', 2); + const list = BoardsStore.findList('id', 1), + listTwo = BoardsStore.findList('id', 2); + setTimeout(() => { expect(list.issues.length).toBe(1); expect(listTwo.issues.length).toBe(1); @@ -148,7 +149,7 @@ expect(listTwo.issues.length).toBe(1); done(); - }); + }, 0); }); }); }); diff --git a/spec/javascripts/boards/issue_spec.js.es6 b/spec/javascripts/boards/issue_spec.js.es6 index b31bd74302a..b53be896872 100644 --- a/spec/javascripts/boards/issue_spec.js.es6 +++ b/spec/javascripts/boards/issue_spec.js.es6 @@ -19,7 +19,7 @@ describe('Issue model', () => { gl.boardService = new BoardService('/test/issue-boards/board'); BoardsStore.create(); - issue = new Issue({ + issue = new ListIssue({ title: 'Testing', iid: 1, confidential: false, |