Added Empty Definitions For Missing Getters And Mutations

This commit is contained in:
Moriz Wahl 2019-11-11 21:20:53 +01:00
parent 1fd3fd8e41
commit 163825e562

View File

@ -29,6 +29,7 @@ describe('PostIndex', () => {
beforeEach(() => {
mutations = {
'posts/SELECT_ORDER': jest.fn(),
'posts/SET_CURRENT_POSTS': jest.fn(),
}
store = new Vuex.Store({
getters: {
@ -53,6 +54,7 @@ describe('PostIndex', () => {
'auth/user': () => {
return { id: 'u23' }
},
'posts/currentPosts': () => jest.fn(),
},
mutations,
})