You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BridgeVideoType.spec.ts 844B

123456789101112131415161718192021222324
  1. import * as exported from "./BridgeVideoType";
  2. // this test is brittle on purpose because it's designed to ensure that the TypeScript conversion maintains backward compatibility
  3. describe( "/service/RTC/BridgeVideoType members", () => {
  4. const {
  5. BridgeVideoType,
  6. ...others
  7. } = exported;
  8. it( "known members", () => {
  9. expect( BridgeVideoType ).toBeDefined();
  10. expect( BridgeVideoType.CAMERA ).toBe( 'camera' );
  11. expect( BridgeVideoType.DESKTOP ).toBe( 'desktop' );
  12. expect( BridgeVideoType.DESKTOP_HIGH_FPS ).toBe( 'desktop_high_fps' );
  13. expect( BridgeVideoType.NONE ).toBe( 'none' );
  14. } );
  15. it( "unknown members", () => {
  16. const keys = Object.keys( others );
  17. expect( keys ).withContext( `Extra members: ${ keys.join( ", " ) }` ).toEqual( [] );
  18. } );
  19. } );