From d3c92cdb92e37963dfb4ec69da9c728747d671a5 Mon Sep 17 00:00:00 2001 From: donal <donalspring@gmail.com> Date: Sat, 21 Apr 2018 19:43:42 +0200 Subject: [PATCH] FIX - linting errors for the build --- tests/unit/vue-components/ListOfTodos.spec.js | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/vue-components/ListOfTodos.spec.js b/tests/unit/vue-components/ListOfTodos.spec.js index ad7a49a..1745994 100644 --- a/tests/unit/vue-components/ListOfTodos.spec.js +++ b/tests/unit/vue-components/ListOfTodos.spec.js @@ -20,28 +20,28 @@ ]; const actions = { loadTodos: jest.fn() - } + }; const getters = { todos: jest.fn() - } + }; beforeEach(() => { - store = new Vuex.Store({ state: {}, propsData: { todos }, - actions, getters + actions, + getters }); }); it("calls the loadTodos function from actionsjs when created", () => { const wrapper = shallow(ListOfTodos, { store, localVue }); expect(actions.loadTodos).toHaveBeenCalled(); - }) + }); it("maps getters with todos when computed", () => { const wrapper = shallow(ListOfTodos, { store, localVue }); expect(getters.todos).toHaveBeenCalled(); - }) + }); it("has the expected html structure", () => { const wrapper = shallow(ListOfTodos, { store, localVue }); -- Gitblit v1.9.3