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 3535 "prepare" : " npm run build" ,
3636 "prepublishOnly" : " node ./tools/build.js" ,
3737 "push-release" : " git push origin master && git push --tags" ,
38- "test" : " jest"
38+ "test" : " jest src/index "
3939 },
4040 "peerDependencies" : {
4141 "react" : " >=15"
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ describe('<Timer />', () => {
118118
119119 expect ( onStart ) . toHaveBeenCalledWith ( {
120120 duration : null ,
121- progress : null ,
121+ progress : 0 ,
122122 time : 0 ,
123123 } ) ;
124124
@@ -135,7 +135,7 @@ describe('<Timer />', () => {
135135 } ) ;
136136
137137 expect ( onFinish ) . not . toBeCalled ( ) ;
138- clock . tick ( 115 ) ;
138+ clock . tick ( 112 ) ;
139139 expect ( onFinish ) . toBeCalled ( ) ;
140140
141141 component . unmount ( ) ;
@@ -190,7 +190,7 @@ describe('<Timer />', () => {
190190 clock . tick ( 96 ) ;
191191 expect ( onTimeUpdate ) . toHaveBeenLastCalledWith ( {
192192 duration : null ,
193- progress : null ,
193+ progress : 0 ,
194194 time : 96 ,
195195 } ) ;
196196
You can’t perform that action at this time.
0 commit comments