From 163825e562027cd91cc2e729a081ecee6411670c Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 11 Nov 2019 21:20:53 +0100 Subject: [PATCH 1/3] Added Empty Definitions For Missing Getters And Mutations --- webapp/pages/index.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/pages/index.spec.js b/webapp/pages/index.spec.js index 0433957bb..8ffa8fac1 100644 --- a/webapp/pages/index.spec.js +++ b/webapp/pages/index.spec.js @@ -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, }) From d7397f5e463962443b3882ccdca242f840df3d06 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 12 Nov 2019 11:20:56 +0100 Subject: [PATCH 2/3] posts/currentPosts now return empty array --- webapp/pages/index.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/pages/index.spec.js b/webapp/pages/index.spec.js index 8ffa8fac1..aeb033cb9 100644 --- a/webapp/pages/index.spec.js +++ b/webapp/pages/index.spec.js @@ -54,7 +54,7 @@ describe('PostIndex', () => { 'auth/user': () => { return { id: 'u23' } }, - 'posts/currentPosts': () => jest.fn(), + 'posts/currentPosts': () => [], }, mutations, }) From e19990a58b3ca87b984db1ef2982834db5072231 Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Tue, 12 Nov 2019 13:43:51 +0100 Subject: [PATCH 3/3] Fix lint --- webapp/pages/index.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/pages/index.spec.js b/webapp/pages/index.spec.js index aeb033cb9..d8587aaf4 100644 --- a/webapp/pages/index.spec.js +++ b/webapp/pages/index.spec.js @@ -54,7 +54,7 @@ describe('PostIndex', () => { 'auth/user': () => { return { id: 'u23' } }, - 'posts/currentPosts': () => [], + 'posts/currentPosts': () => [], }, mutations, })