File tree 3 files changed +7
-20
lines changed 3 files changed +7
-20
lines changed Original file line number Diff line number Diff line change 41
41
"rollup-plugin-terser" : " ^4.0.4" ,
42
42
"rollup-plugin-typescript2" : " ^0.21.0" ,
43
43
"typescript" : " ^3.4.5" ,
44
- "vue" : " ^2.6.10 "
44
+ "vue" : " ^2.5.22 "
45
45
},
46
46
"peerDependencies" : {
47
- "vue" : " ^2.0.0 "
47
+ "vue" : " ^2.5.22 "
48
48
},
49
49
"dependencies" : {
50
50
"tslib" : " ^1.9.3"
Original file line number Diff line number Diff line change @@ -33,25 +33,12 @@ describe('Hooks state', () => {
33
33
} ;
34
34
} ,
35
35
render ( h ) {
36
- return h ( 'div' , [
37
- h ( 'span' , this . state . count ) ,
38
- h (
39
- 'button' ,
40
- {
41
- on : {
42
- click : ( ) => {
43
- this . state . count ++ ;
44
- } ,
45
- } ,
46
- } ,
47
- '+'
48
- ) ,
49
- ] ) ;
36
+ return h ( 'div' , [ h ( 'span' , this . state . count ) ] ) ;
50
37
} ,
51
38
} ) . $mount ( ) ;
52
39
53
40
expect ( app . $el . querySelector ( 'span' ) . textContent ) . toBe ( '0' ) ;
54
- app . $el . querySelector ( 'button' ) . click ( ) ;
41
+ app . state . count ++ ;
55
42
waitForUpdate ( ( ) => {
56
43
expect ( app . $el . querySelector ( 'span' ) . textContent ) . toBe ( '1' ) ;
57
44
} ) . then ( done ) ;
Original file line number Diff line number Diff line change @@ -4201,10 +4201,10 @@ verror@1.10.0:
4201
4201
core-util-is "1.0.2"
4202
4202
extsprintf "^1.2.0"
4203
4203
4204
- vue@^2.6.10 :
4204
+ vue@^2.5.22 :
4205
4205
version "2.6.10"
4206
- resolved "https://registry.yarnpkg.com /vue/- /vue-2.6.10.tgz#a72b1a42a4d82a721ea438d1b6bf55e66195c637"
4207
- integrity sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ= =
4206
+ resolved "https://registry.npm.taobao.org /vue/download /vue-2.6.10.tgz#a72b1a42a4d82a721ea438d1b6bf55e66195c637"
4207
+ integrity sha1-pysaQqTYKnIepDjRtr9V5mGVxjc =
4208
4208
4209
4209
w3c-hr-time@^1.0.1 :
4210
4210
version "1.0.1"
You can’t perform that action at this time.
0 commit comments