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.

VideoType.spec.ts 674B

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