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