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/XofYItems.spec.js | 22 ++++------------------ 1 files changed, 4 insertions(+), 18 deletions(-) diff --git a/tests/unit/vue-components/XofYItems.spec.js b/tests/unit/vue-components/XofYItems.spec.js index 2cb3772..1ac9a33 100644 --- a/tests/unit/vue-components/XofYItems.spec.js +++ b/tests/unit/vue-components/XofYItems.spec.js @@ -1,26 +1,14 @@ -import { shallow, createLocalVue, mount } from "@vue/test-utils"; +/* eslint-disable */ +import { shallow, createLocalVue } from "@vue/test-utils"; import Vuex from "vuex"; import XofYItems from "@/components/XofYItems.vue"; - -import * as all from "../setup.js"; const localVue = createLocalVue(); localVue.use(Vuex); +let store; describe("XofYItems.vue", () => { - let store; - - const todos = [ - { - title: "Learn awesome things about Labs", - completed: false, - important: false - } - ]; -// const methods = { -// sumDoneTodoItems: jest.fn() -// }; const actions = { loadTodos: jest.fn(), clearTodos: jest.fn() @@ -56,8 +44,6 @@ } ]; - expect(mockedTodos.length).toEqual(3) - // Replace with testing the sumDoneTodoItems function and check it it's called - // expect(sumDoneTodoItems).toHaveBeenCalled() + expect(mockedTodos.length).toEqual(3); }); }); -- Gitblit v1.9.3