donal
2018-04-21 d3c92cdb92e37963dfb4ec69da9c728747d671a5
commit | author | age
b0b888 1 import { shallow, createLocalVue } from "@vue/test-utils";
A 2 import Header from "@/components/Header.vue";
9d6970 3 import * as all from "../setup.js";
90ac1e 4
A 5 describe("Header.vue", () => {
d3c92c 6   //   const Date = 15 / 12 / 1995;
D 7   //   it("has the expected html structure", () => {
8   //     const created = () => {}
9   //     const wrapper = shallow(Header, {
10   //       created
11   //     });
12   //     expect(wrapper.element).toMatchSnapshot();
13   //   });
b0b888 14
A 15   it("calls the loadTodos function from actionsjs when created", () => {
16     const created = jest.fn();
17     const wrapper = shallow(Header, {
18       created
19     });
20     expect(created).toHaveBeenCalled();
21   });
22 });