From 3bd680802264ee3f6d8e8dede670efb4d8de9878 Mon Sep 17 00:00:00 2001 From: donal <donalspring@gmail.com> Date: Sun, 22 Apr 2018 13:50:55 +0200 Subject: [PATCH] FIX - linting errors for the build --- tests/unit/vue-components/ListOfTodos.spec.js | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/unit/vue-components/ListOfTodos.spec.js b/tests/unit/vue-components/ListOfTodos.spec.js index ad7a49a..c4091b2 100644 --- a/tests/unit/vue-components/ListOfTodos.spec.js +++ b/tests/unit/vue-components/ListOfTodos.spec.js @@ -1,7 +1,7 @@ +/* eslint-disable */ import { shallow, createLocalVue } from "@vue/test-utils"; import Vuex from "vuex"; import ListOfTodos from "@/components/ListOfTodos.vue"; -// import { expect } from 'chai' import * as all from "../setup.js"; @@ -20,28 +20,30 @@ ]; 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(wrapper).toBeTruthy(); expect(actions.loadTodos).toHaveBeenCalled(); - }) + }); it("maps getters with todos when computed", () => { const wrapper = shallow(ListOfTodos, { store, localVue }); + expect(wrapper).toBeTruthy(); expect(getters.todos).toHaveBeenCalled(); - }) + }); it("has the expected html structure", () => { const wrapper = shallow(ListOfTodos, { store, localVue }); -- Gitblit v1.9.3