donal
2018-04-16 991fcf9223a17ed77d31d5f87b13d759b533aed5
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", () => {
b0b888 6
A 7 //   const Date = 15 / 12 / 1995;
8 //   it("has the expected html structure", () => {
9 //     const created = () => {}
10 //     const wrapper = shallow(Header, {
11 //       created
12 //     });
13 //     expect(wrapper.element).toMatchSnapshot();
14 //   });
15
16   it("calls the loadTodos function from actionsjs when created", () => {
17     const created = jest.fn();
18     const wrapper = shallow(Header, {
19       created
20     });
21     expect(created).toHaveBeenCalled();
22   });
23 });