Browse Source

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

j8
Jaya Allamsetty 4 years ago
parent
commit
c58657c759
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      react/features/base/testing/functions.js

+ 1
- 1
react/features/base/testing/functions.js View File

@@ -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
 }

Loading…
Cancel
Save