donal
2018-04-16 991fcf9223a17ed77d31d5f87b13d759b533aed5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { shallow, createLocalVue } 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(created).toHaveBeenCalled();
  });
});