diff --git a/webapp/components/PostTeaser/PostTeaser.spec.js b/webapp/components/PostTeaser/PostTeaser.spec.js index 83b7570a0..b80c338a8 100644 --- a/webapp/components/PostTeaser/PostTeaser.spec.js +++ b/webapp/components/PostTeaser/PostTeaser.spec.js @@ -51,13 +51,17 @@ describe('PostTeaser', () => { } getters = { 'auth/isModerator': () => false, + 'auth/isAdmin': () => false, 'auth/user': () => { return {} }, 'categories/categoriesActive': () => false, + 'pinnedPosts/maxPinnedPosts': () => 0, + 'pinnedPosts/currentlyPinnedPosts': () => 0, } actions = { 'categories/init': jest.fn(), + 'pinnedPosts/fetch': jest.fn().mockResolvedValue(), } }) diff --git a/webapp/components/_new/features/SearchResults/SearchResults.spec.js b/webapp/components/_new/features/SearchResults/SearchResults.spec.js index b80d10c71..40bb0fcf7 100644 --- a/webapp/components/_new/features/SearchResults/SearchResults.spec.js +++ b/webapp/components/_new/features/SearchResults/SearchResults.spec.js @@ -16,9 +16,14 @@ const stubs = { describe('SearchResults', () => { let mocks, getters, propsData, wrapper + const Wrapper = () => { const store = new Vuex.Store({ getters, + actions: { + 'categories/init': jest.fn(), + 'pinnedPosts/fetch': jest.fn(), + }, }) return mount(SearchResults, { mocks, localVue, propsData, store, stubs }) } diff --git a/webapp/pages/profile/_id/_slug.spec.js b/webapp/pages/profile/_id/_slug.spec.js index 5d7e2398b..874c07ec6 100644 --- a/webapp/pages/profile/_id/_slug.spec.js +++ b/webapp/pages/profile/_id/_slug.spec.js @@ -78,7 +78,11 @@ describe('ProfileSlug', () => { 'auth/user': { id: 'u23', }, + 'auth/isAdmin': () => false, + 'pinnedPosts/maxPinnedPosts': () => 0, + 'pinnedPosts/currentlyPinnedPosts': () => 0, }, + dispatch: jest.fn().mockResolvedValue(), } })