1234567891011121314151617181920212223242526 |
- import * as exported from "./CodecMimeType";
-
- // this test is brittle on purpose because it's designed to ensure that the TypeScript conversion maintains backward compatibility
-
- describe( "/service/RTC/CodecMimeType members", () => {
- const {
- CodecMimeType,
- ...others
- } = exported;
-
- it( "known members", () => {
- expect( CodecMimeType ).toBeDefined();
-
- expect( CodecMimeType.AV1 ).toBe( 'av1' );
- expect( CodecMimeType.H264 ).toBe( 'h264' );
- expect( CodecMimeType.OPUS ).toBe( 'opus' );
- expect( CodecMimeType.ULPFEC ).toBe( 'ulpfec' );
- expect( CodecMimeType.VP8 ).toBe( 'vp8' );
- expect( CodecMimeType.VP9 ).toBe( 'vp9' );
- } );
-
- it( "unknown members", () => {
- const keys = Object.keys( others );
- expect( keys ).withContext( `Extra members: ${ keys.join( ", " ) }` ).toEqual( [] );
- } );
- } );
|