Explorar el Código

fix(RTC) Add AV1 to CodecMimeType unit test

dev1
Jaya Allamsetty hace 3 años
padre
commit
eda20c2a31
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      service/RTC/CodecMimeType.spec.ts

+ 4
- 0
service/RTC/CodecMimeType.spec.ts Ver fichero

@@ -1,9 +1,11 @@
1
+import exp from "constants";
1 2
 import * as exported from "./CodecMimeType";
2 3
 
3 4
 // this test is brittle on purpose because it's designed to ensure that the TypeScript conversion maintains backward compatibility
4 5
 
5 6
 describe( "/service/RTC/CodecMimeType members", () => {
6 7
     const {
8
+        AV1,
7 9
         H264,
8 10
         OPUS,
9 11
         ULPFEC,
@@ -14,12 +16,14 @@ describe( "/service/RTC/CodecMimeType members", () => {
14 16
     } = exported as any; // TODO: remove cast after typescript conversion
15 17
 
16 18
     it( "known members", () => {
19
+        expect( AV1 ).toBe( 'av1' );
17 20
         expect( H264 ).toBe( 'h264' );
18 21
         expect( OPUS ).toBe( 'opus' );
19 22
         expect( ULPFEC ).toBe( 'ulpfec' );
20 23
         expect( VP8 ).toBe( 'vp8' );
21 24
         expect( VP9 ).toBe( 'vp9' );
22 25
         if ( CodecMimeType ) {
26
+            expect( CodecMimeType.AV1 ).toBe( 'av1' );
23 27
             expect( CodecMimeType.H264 ).toBe( 'h264' );
24 28
             expect( CodecMimeType.OPUS ).toBe( 'opus' );
25 29
             expect( CodecMimeType.ULPFEC ).toBe( 'ulpfec' );

Loading…
Cancelar
Guardar