mirror of
https://github.com/Kugelschieber/breach.git
synced 2026-01-18 12:00:25 +00:00
Added testing framework and updated dependencies.
This commit is contained in:
14
src/components/HelloWorld.test.ts
Normal file
14
src/components/HelloWorld.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import "jest";
|
||||
import {shallowMount} from "@vue/test-utils";
|
||||
import HelloWorld from "../components/HelloWorld.vue";
|
||||
|
||||
describe("HelloWorld.vue", () => {
|
||||
test("renders props.msg when passed", () => {
|
||||
const msg = "new message"
|
||||
const wrapper = shallowMount(HelloWorld, {
|
||||
propsData: { msg }
|
||||
});
|
||||
|
||||
expect(wrapper.text()).toMatch(msg)
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user