File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/mocks/web-animations-api Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " jsdom-testing-mocks" ,
3- "version" : " 1.15.0 " ,
3+ "version" : " 1.15.1 " ,
44 "author" : " Ivan Galiatin" ,
55 "license" : " MIT" ,
66 "description" : " A set of tools for emulating browser behavior in jsdom environment" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ class MockedAnimationEffect implements AnimationEffect {
1818 }
1919 }
2020
21- #getNormalizedDuration( ) : number {
21+ // Changed from private (#getNormalizedDuration) to protected (_getNormalizedDuration)
22+ // to allow access from child classes in all JavaScript environments
23+ protected _getNormalizedDuration ( ) : number {
2224 // the only possible value is "auto"
2325 if ( typeof this . #timing. duration === 'string' ) {
2426 return 0 ;
@@ -34,7 +36,7 @@ class MockedAnimationEffect implements AnimationEffect {
3436
3537 getComputedTiming ( ) : ComputedEffectTiming {
3638 // duration of the animation
37- const duration = this . #getNormalizedDuration ( ) ;
39+ const duration = this . _getNormalizedDuration ( ) ;
3840
3941 // Calculated as (iteration_duration * iteration_count)
4042 const activeDuration =
You can’t perform that action at this time.
0 commit comments