Skip to content

Commit e11f79a

Browse files
committed
wrappers?factories?composition api?
1 parent 66ddb88 commit e11f79a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/example.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { mount } from "@vue/test-utils";
22

33
const App = {
4+
data: () => ({
5+
msg: "Hello",
6+
}),
47
props: {
58
count: {
69
type: Number,
@@ -26,6 +29,7 @@ function factory(props) {
2629
describe("App", () => {
2730
it("render count when odd", () => {
2831
const wrapper = factory({ count: 1 });
32+
console.log(wrapper.vm);
2933
expect(wrapper.html()).toContain("Count: 1. Count is odd");
3034
});
3135

0 commit comments

Comments
 (0)