123456789101112131415161718192021222324 |
- import * as exported from "./BridgeVideoType";
-
- // this test is brittle on purpose because it's designed to ensure that the TypeScript conversion maintains backward compatibility
-
- describe( "/service/RTC/BridgeVideoType members", () => {
- const {
- BridgeVideoType,
- ...others
- } = exported;
-
- it( "known members", () => {
- expect( BridgeVideoType ).toBeDefined();
-
- expect( BridgeVideoType.CAMERA ).toBe( 'camera' );
- expect( BridgeVideoType.DESKTOP ).toBe( 'desktop' );
- expect( BridgeVideoType.DESKTOP_HIGH_FPS ).toBe( 'desktop_high_fps' );
- expect( BridgeVideoType.NONE ).toBe( 'none' );
- } );
-
- it( "unknown members", () => {
- const keys = Object.keys( others );
- expect( keys ).withContext( `Extra members: ${ keys.join( ", " ) }` ).toEqual( [] );
- } );
- } );
|