Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-07-16 02:42:26 +0300
committerFatih Acet <acetfatih@gmail.com>2019-07-16 02:42:26 +0300
commit5b71c8b25923b625cc92720c63eae29080b3bfa6 (patch)
treeabcb86aa990ecd83118382bcec5e78f81ec9bbe3 /spec/javascripts/boards
parent939563a7d233bab91c9dc96435d19ed87308f26b (diff)
Add setCurrentBoard to boardsStore
(cherry picked from commit 9cd745c65bcb51d615399e82d8b26ef5cce972e1)
Diffstat (limited to 'spec/javascripts/boards')
-rw-r--r--spec/javascripts/boards/boards_store_spec.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/javascripts/boards/boards_store_spec.js b/spec/javascripts/boards/boards_store_spec.js
index 5266b1bdbfc..36bd7ada4f0 100644
--- a/spec/javascripts/boards/boards_store_spec.js
+++ b/spec/javascripts/boards/boards_store_spec.js
@@ -365,4 +365,17 @@ describe('Store', () => {
expect(boardsStore.timeTracking.limitToHours).toEqual(true);
});
});
+
+ describe('setCurrentBoard', () => {
+ const dummyBoard = 'hoverboard';
+
+ it('sets the current board', () => {
+ const { state } = boardsStore;
+ state.currentBoard = null;
+
+ boardsStore.setCurrentBoard(dummyBoard);
+
+ expect(state.currentBoard).toEqual(dummyBoard);
+ });
+ });
});