diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-06-04 00:58:07 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-06-04 00:58:07 +0300 |
commit | e0594255b52a565ca3ad5edb789d88777727684f (patch) | |
tree | e5d869f1331e7c405f3a92e3f397439c92ca22bd /spec/javascripts/boards | |
parent | c90e6943b1df1ee64c8e0a28ec82a712492af68f (diff) |
Move boardsStore.moving to BoardList component
Diffstat (limited to 'spec/javascripts/boards')
-rw-r--r-- | spec/javascripts/boards/boards_store_spec.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/javascripts/boards/boards_store_spec.js b/spec/javascripts/boards/boards_store_spec.js index d3e6eb78e5a..9b125593869 100644 --- a/spec/javascripts/boards/boards_store_spec.js +++ b/spec/javascripts/boards/boards_store_spec.js @@ -287,4 +287,16 @@ describe('Store', () => { expect(boardsStore.detail.issue).toEqual({}); }); }); + + describe('startMoving', () => { + it('stores list and issue', () => { + const dummyIssue = 'some issue'; + const dummyList = 'some list'; + + boardsStore.startMoving(dummyList, dummyIssue); + + expect(boardsStore.moving.issue).toEqual(dummyIssue); + expect(boardsStore.moving.list).toEqual(dummyList); + }); + }); }); |