diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-06-04 15:34:17 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2019-06-04 15:34:17 +0000 |
commit | 0c93e470fd2ff59bf59a13cc012ff33fd7a40704 (patch) | |
tree | 8c78e40eb81a5e847fb3f7b63551cd0a49537e83 /spec/javascripts/boards | |
parent | f4cb5d2beb3d2d473a7ae7794774b554dc025aae (diff) | |
download | gitlab-ce-0c93e470fd2ff59bf59a13cc012ff33fd7a40704.tar.gz |
Extract setIssueDetail() into issue boards store
Diffstat (limited to 'spec/javascripts/boards')
-rw-r--r-- | spec/javascripts/boards/boards_store_spec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/javascripts/boards/boards_store_spec.js b/spec/javascripts/boards/boards_store_spec.js index e77768e3597..68e66346bfd 100644 --- a/spec/javascripts/boards/boards_store_spec.js +++ b/spec/javascripts/boards/boards_store_spec.js @@ -322,6 +322,17 @@ describe('Store', () => { }); }); + describe('setIssueDetail', () => { + it('sets issue details', () => { + boardsStore.detail.issue = 'some details'; + + const dummyValue = 'new details'; + boardsStore.setIssueDetail(dummyValue); + + expect(boardsStore.detail.issue).toEqual(dummyValue); + }); + }); + describe('startMoving', () => { it('stores list and issue', () => { const dummyIssue = 'some issue'; |