donal
2018-04-22 3bd680802264ee3f6d8e8dede670efb4d8de9878
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* eslint-disable */
import { shallow } from "@vue/test-utils";
import Todo from "@/views/Todo.vue";
import Header from "@/components/Header.vue";
import XofYItems from "@/components/XofYItems.vue";
import * as all from "../setup.js";
 
describe("Todo.vue", () => {
  it("should render the html layout like the snapshot (see /__snapshots__/Todo.spec.js.snap)", () => {
    const wrapper = shallow(Todo);
    expect(wrapper.element).toMatchSnapshot();
  });
  it("render with content such as header", () => {
    const wrapper = shallow(Todo);
    expect(wrapper.find(Header)).toBeTruthy();
  });
  it("render with content such as XofYItems", () => {
    const wrapper = shallow(Todo);
    expect(wrapper.find(XofYItems)).toBeTruthy();
  });
  // NEW TEST GOES HERE
});