diff options
Diffstat (limited to 'spec/frontend/notes/stores/mutation_spec.js')
-rw-r--r-- | spec/frontend/notes/stores/mutation_spec.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/frontend/notes/stores/mutation_spec.js b/spec/frontend/notes/stores/mutation_spec.js index da1547ab6e7..e0a0fc43ffe 100644 --- a/spec/frontend/notes/stores/mutation_spec.js +++ b/spec/frontend/notes/stores/mutation_spec.js @@ -883,4 +883,16 @@ describe('Notes Store mutations', () => { expect(state.discussions[0].position).toEqual(position); }); }); + + describe('SET_DONE_FETCHING_BATCH_DISCUSSIONS', () => { + it('should set doneFetchingBatchDiscussions', () => { + const state = { + doneFetchingBatchDiscussions: false, + }; + + mutations.SET_DONE_FETCHING_BATCH_DISCUSSIONS(state, true); + + expect(state.doneFetchingBatchDiscussions).toEqual(true); + }); + }); }); |