Merge pull request #2197 from Human-Connection/2195-define-missing-getters

Added Empty Definitions For Missing Getters And Mutations
This commit is contained in:
mattwr18 2019-11-12 15:54:45 +01:00 committed by GitHub
commit 797b8338be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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': () => [],
},
mutations,
})