mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-02-06 09:55:50 +00:00
Merge pull request #2197 from Human-Connection/2195-define-missing-getters
Added Empty Definitions For Missing Getters And Mutations
This commit is contained in:
commit
797b8338be
@ -29,6 +29,7 @@ describe('PostIndex', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
mutations = {
|
mutations = {
|
||||||
'posts/SELECT_ORDER': jest.fn(),
|
'posts/SELECT_ORDER': jest.fn(),
|
||||||
|
'posts/SET_CURRENT_POSTS': jest.fn(),
|
||||||
}
|
}
|
||||||
store = new Vuex.Store({
|
store = new Vuex.Store({
|
||||||
getters: {
|
getters: {
|
||||||
@ -53,6 +54,7 @@ describe('PostIndex', () => {
|
|||||||
'auth/user': () => {
|
'auth/user': () => {
|
||||||
return { id: 'u23' }
|
return { id: 'u23' }
|
||||||
},
|
},
|
||||||
|
'posts/currentPosts': () => [],
|
||||||
},
|
},
|
||||||
mutations,
|
mutations,
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user