浏览代码

fix(test): Make sure test doesn't error out.

j8
Jaya Allamsetty 4 年前
父节点
当前提交
c58657c759
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/base/testing/functions.js

+ 1
- 1
react/features/base/testing/functions.js 查看文件

@@ -52,7 +52,7 @@ export function isLargeVideoReceived({ getState }: Object): boolean {
52 52
  */
53 53
 export function isRemoteVideoReceived({ getState }: Object, id: String): boolean {
54 54
     const videoTrack = getTrackByMediaTypeAndParticipant(getState()['features/base/tracks'], MEDIA_TYPE.VIDEO, id);
55
-    const lastMediaEvent = videoTrack.lastMediaEvent;
55
+    const lastMediaEvent = videoTrack?.lastMediaEvent;
56 56
 
57 57
     return !videoTrack.muted && (lastMediaEvent === 'playing' || lastMediaEvent === 'canplaythrough');
58 58
 }

正在加载...
取消
保存