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.

CodecMimeType.spec.ts 899B

1234567891011121314151617181920212223242526
  1. import * as exported from "./CodecMimeType";
  2. // this test is brittle on purpose because it's designed to ensure that the TypeScript conversion maintains backward compatibility
  3. describe( "/service/RTC/CodecMimeType members", () => {
  4. const {
  5. CodecMimeType,
  6. ...others
  7. } = exported;
  8. it( "known members", () => {
  9. expect( CodecMimeType ).toBeDefined();
  10. expect( CodecMimeType.AV1 ).toBe( 'av1' );
  11. expect( CodecMimeType.H264 ).toBe( 'h264' );
  12. expect( CodecMimeType.OPUS ).toBe( 'opus' );
  13. expect( CodecMimeType.ULPFEC ).toBe( 'ulpfec' );
  14. expect( CodecMimeType.VP8 ).toBe( 'vp8' );
  15. expect( CodecMimeType.VP9 ).toBe( 'vp9' );
  16. } );
  17. it( "unknown members", () => {
  18. const keys = Object.keys( others );
  19. expect( keys ).withContext( `Extra members: ${ keys.join( ", " ) }` ).toEqual( [] );
  20. } );
  21. } );