modified lib-jitsi-meet dev repo
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.

JitsiTranscriptionStatus.spec.ts 834B

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