We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66ddb88 commit e11f79aCopy full SHA for e11f79a
tests/unit/example.spec.js
@@ -1,6 +1,9 @@
1
import { mount } from "@vue/test-utils";
2
3
const App = {
4
+ data: () => ({
5
+ msg: "Hello",
6
+ }),
7
props: {
8
count: {
9
type: Number,
@@ -26,6 +29,7 @@ function factory(props) {
26
29
describe("App", () => {
27
30
it("render count when odd", () => {
28
31
const wrapper = factory({ count: 1 });
32
+ console.log(wrapper.vm);
33
expect(wrapper.html()).toContain("Count: 1. Count is odd");
34
});
35
0 commit comments