File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 35
35
"prepare" : " npm run build" ,
36
36
"prepublishOnly" : " node ./tools/build.js" ,
37
37
"push-release" : " git push origin master && git push --tags" ,
38
- "test" : " jest"
38
+ "test" : " jest src/index "
39
39
},
40
40
"peerDependencies" : {
41
41
"react" : " >=15"
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ describe('<Timer />', () => {
118
118
119
119
expect ( onStart ) . toHaveBeenCalledWith ( {
120
120
duration : null ,
121
- progress : null ,
121
+ progress : 0 ,
122
122
time : 0 ,
123
123
} ) ;
124
124
@@ -135,7 +135,7 @@ describe('<Timer />', () => {
135
135
} ) ;
136
136
137
137
expect ( onFinish ) . not . toBeCalled ( ) ;
138
- clock . tick ( 115 ) ;
138
+ clock . tick ( 112 ) ;
139
139
expect ( onFinish ) . toBeCalled ( ) ;
140
140
141
141
component . unmount ( ) ;
@@ -190,7 +190,7 @@ describe('<Timer />', () => {
190
190
clock . tick ( 96 ) ;
191
191
expect ( onTimeUpdate ) . toHaveBeenLastCalledWith ( {
192
192
duration : null ,
193
- progress : null ,
193
+ progress : 0 ,
194
194
time : 96 ,
195
195
} ) ;
196
196
You can’t perform that action at this time.
0 commit comments