diff options
author | Dicker Max <dicker-95@web.de> | 2018-08-16 15:27:56 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2018-08-16 15:27:56 +0000 |
commit | c4d2db1f6c4fccfd1bad9b409de06fc362dc0283 (patch) | |
tree | 389da0d619947dc76a35f3fa5eb3e1ab9b38200f /spec | |
parent | 7a0e2426bcd86e336c0bf5ff41a6ed9bb1e2cd55 (diff) | |
download | gitlab-ce-c4d2db1f6c4fccfd1bad9b409de06fc362dc0283.tar.gz |
Fix if-check
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/boards/board_list_spec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/javascripts/boards/board_list_spec.js b/spec/javascripts/boards/board_list_spec.js index de261d36c61..290600cf995 100644 --- a/spec/javascripts/boards/board_list_spec.js +++ b/spec/javascripts/boards/board_list_spec.js @@ -200,6 +200,15 @@ describe('Board list component', () => { }); }); + it('does not load issues if already loading', () => { + component.list.nextPage = spyOn(component.list, 'nextPage').and.returnValue(new Promise(() => {})); + + component.onScroll(); + component.onScroll(); + + expect(component.list.nextPage).toHaveBeenCalledTimes(1); + }); + it('shows loading more spinner', (done) => { component.showCount = true; component.list.loadingMore = true; |