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