donal
2018-04-22 3bd680802264ee3f6d8e8dede670efb4d8de9878
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();
  });
});