diff options
Diffstat (limited to 'spec/frontend/ref/stores/actions_spec.js')
-rw-r--r-- | spec/frontend/ref/stores/actions_spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/frontend/ref/stores/actions_spec.js b/spec/frontend/ref/stores/actions_spec.js index 099ce062a3a..c6aac8c9c98 100644 --- a/spec/frontend/ref/stores/actions_spec.js +++ b/spec/frontend/ref/stores/actions_spec.js @@ -52,6 +52,13 @@ describe('Ref selector Vuex store actions', () => { }); }); + describe('setParams', () => { + it(`commits ${types.SET_PARAMS} with the provided params`, () => { + const params = { sort: 'updated_asc' }; + testAction(actions.setParams, params, state, [{ type: types.SET_PARAMS, payload: params }]); + }); + }); + describe('search', () => { it(`commits ${types.SET_QUERY} with the new search query`, () => { const query = 'hello'; |