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/NewTodo.spec.js |   33 ++++++++++-----------------------
 1 files changed, 10 insertions(+), 23 deletions(-)

diff --git a/tests/unit/vue-components/NewTodo.spec.js b/tests/unit/vue-components/NewTodo.spec.js
index cb82ba9..df32c74 100644
--- a/tests/unit/vue-components/NewTodo.spec.js
+++ b/tests/unit/vue-components/NewTodo.spec.js
@@ -1,26 +1,25 @@
-import { shallow, createLocalVue, mount } from "@vue/test-utils";
+/* eslint-disable */
+import { shallow, createLocalVue } from "@vue/test-utils";
 import Vuex from "vuex";
 import NewTodo from "@/components/NewTodo.vue";
-// import { expect } from 'chai'
 
 import * as all from "../setup.js";
 
 const localVue = createLocalVue();
 
 localVue.use(Vuex);
+let methods;
+let store;
 
 describe("NewTodo.vue", () => {
-  let methods;
-  let store;
-
   beforeEach(() => {
-    (methods = {
+    methods = {
       newTodoAdded: jest.fn()
-    }),
-      (store = new Vuex.Store({
-        state: {},
-        methods
-      }));
+    };
+    store = new Vuex.Store({
+      state: {},
+      methods
+    });
   });
 
   it("calls newTodoAdded() when keyup.enter hit.", () => {
@@ -56,16 +55,4 @@
     const wrapper = shallow(NewTodo);
     expect(wrapper.element).toMatchSnapshot();
   });
-
-  // it("has the expected html structure", () => {
-  //   const wrapper = mount(NewTodo);
-  //   expect(wrapper.element).toMatchSnapshot();
-  // });
-
-  // it("renders newTodo as test string ", () => {
-  //   const wrapper = shallow(NewTodo, {
-  //     propsData: { newTodo: "test string" }
-  //   });
-  //   expect(wrapper.vm.newTodo).toMatch("test string");
-  // });
 });

--
Gitblit v1.9.3