test: standardized jest unit testing (#10047)

This commit is contained in:
Nathan Walker
2022-11-28 14:30:32 -08:00
parent 66e8e39f1e
commit b147612e06
103 changed files with 1354 additions and 12804 deletions

View File

@ -142,7 +142,7 @@ export class Animation extends AnimationBase {
if (Trace.isEnabled()) {
Trace.write('MainAnimatorListener.onAnimationEnd(' + animator + ')', Trace.categories.Animation);
}
const thisRef = that.get();
const thisRef = that?.get();
if (thisRef) {
thisRef._onAndroidAnimationEnd();
}
@ -151,7 +151,7 @@ export class Animation extends AnimationBase {
if (Trace.isEnabled()) {
Trace.write('MainAnimatorListener.onAnimationCancel(' + animator + ')', Trace.categories.Animation);
}
const thisRef = that.get();
const thisRef = that?.get();
if (thisRef) {
thisRef._onAndroidAnimationCancel();
}