Skip to content

Commit

Permalink
feat: use app set settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Oct 21, 2024
1 parent fff60bf commit 97c5e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/specs/components/SearchResultsList.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ describe('SearchResultsList.vue', () => {
const core = CoreSetup.init(api).useAll()

async function createView(query = '*', from = 0, perPage = 25, field = settings.defaultSearchField) {
await core.store.dispatch('search/query', { query, from, field, perPage })
await core.store.commit('app/setSettings', { view: 'search', perPage })
await core.store.dispatch('search/query', { query, from, field })
return shallowMount(SearchResultsList, {
global: {
plugins: core.plugins
Expand Down

0 comments on commit 97c5e9e

Please sign in to comment.