commit | author | age | ||
998a46 | 1 | import { shallow } from "@vue/test-utils"; |
D | 2 | import HelloWorld from "@/components/HelloWorld.vue"; |
3 | ||
4 | describe("HelloWorld.vue", () => { | |
5 | it("renders props.msg when passed", () => { | |
6 | const msg = "new message"; | |
7 | const wrapper = shallow(HelloWorld, { | |
8 | propsData: { msg } | |
9 | }); | |
1a68cf | 10 | expect(wrapper.text()).toMatch(msg); |
998a46 | 11 | }); |
D | 12 | }); |