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/Header.spec.js | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-) diff --git a/tests/unit/vue-components/Header.spec.js b/tests/unit/vue-components/Header.spec.js index 3eca441..f385875 100644 --- a/tests/unit/vue-components/Header.spec.js +++ b/tests/unit/vue-components/Header.spec.js @@ -1,22 +1,13 @@ -import { shallow, createLocalVue } from "@vue/test-utils"; +import { shallow } from "@vue/test-utils"; import Header from "@/components/Header.vue"; -import * as all from "../setup.js"; describe("Header.vue", () => { - // const Date = 15 / 12 / 1995; - // it("has the expected html structure", () => { - // const created = () => {} - // const wrapper = shallow(Header, { - // created - // }); - // expect(wrapper.element).toMatchSnapshot(); - // }); - it("calls the loadTodos function from actionsjs when created", () => { const created = jest.fn(); const wrapper = shallow(Header, { created }); + expect(wrapper).toBeTruthy(); expect(created).toHaveBeenCalled(); }); }); -- Gitblit v1.9.3