diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-05-30 07:31:42 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-05-30 07:31:42 +0000 |
commit | ed5ecec1a46a674d72703c9ac1b79f65fd57cef5 (patch) | |
tree | 4da2117bfde2d871c74a6000f2feaf1d9553f269 /spec/javascripts | |
parent | 101733b5672b1eb1587985c56f94555c964f0164 (diff) | |
download | gitlab-ce-ed5ecec1a46a674d72703c9ac1b79f65fd57cef5.tar.gz |
Extract clearDetailIssue() to issue boards store
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/boards/boards_store_spec.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/javascripts/boards/boards_store_spec.js b/spec/javascripts/boards/boards_store_spec.js index 22f192bc7f3..26e851b5641 100644 --- a/spec/javascripts/boards/boards_store_spec.js +++ b/spec/javascripts/boards/boards_store_spec.js @@ -268,4 +268,14 @@ describe('Store', () => { }); }); }); + + describe('clearDetailIssue', () => { + it('resets issue details', () => { + boardsStore.detail.issue = 'something'; + + boardsStore.clearDetailIssue(); + + expect(boardsStore.detail.issue).toEqual({}); + }); + }); }); |