mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +03:00
13 lines
342 B
JavaScript
13 lines
342 B
JavaScript
import { shallowMount } from "@vue/test-utils";
|
|
import HelloWorld from "@/components/HelloWorld.vue";
|
|
|
|
describe("HelloWorld.vue", () => {
|
|
it("renders props.msg when passed", () => {
|
|
const msg = "new message";
|
|
const wrapper = shallowMount(HelloWorld, {
|
|
props: { msg }
|
|
});
|
|
expect(wrapper.text()).toMatch(msg);
|
|
});
|
|
});
|