File tree 1 file changed +22
-2
lines changed
1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,18 @@ describe(Watch, () => {
34
34
} )
35
35
36
36
it ( 'sets options correctly' , ( ) => {
37
- expect ( wrapper . vm . $options . watch ) . toMatchInlineSnapshot ( `Object {}` )
37
+ expect ( wrapper . vm . $options . watch ?. [ WATCH_PATH ] ) . toMatchInlineSnapshot ( `
38
+ Array [
39
+ Object {
40
+ "handler": "onChange",
41
+ "user": true,
42
+ },
43
+ Object {
44
+ "handler": "onChangeAnother",
45
+ "user": true,
46
+ },
47
+ ]
48
+ ` )
38
49
} )
39
50
40
51
it ( 'does not call on mounted' , ( ) => {
@@ -76,7 +87,16 @@ describe(Watch, () => {
76
87
} )
77
88
78
89
it ( 'sets options correctly' , ( ) => {
79
- expect ( wrapper . vm . $options . watch ) . toMatchInlineSnapshot ( `Object {}` )
90
+ expect ( wrapper . vm . $options . watch ?. [ WATCH_PATH ] ) . toMatchInlineSnapshot ( `
91
+ Array [
92
+ Object {
93
+ "deep": true,
94
+ "handler": "onChange",
95
+ "immediate": true,
96
+ "user": true,
97
+ },
98
+ ]
99
+ ` )
80
100
} )
81
101
} )
82
102
You can’t perform that action at this time.
0 commit comments