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 890B

1234567891011121314151617181920212223242526
  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 as any; // TODO: remove cast after typescript conversion
  10. it( "known members", () => {
  11. expect( ON ).toBe( 'on' );
  12. expect( OFF ).toBe( 'off' );
  13. if ( JitsiTranscriptionStatus ) {
  14. expect( JitsiTranscriptionStatus.ON ).toBe( 'on' );
  15. expect( JitsiTranscriptionStatus.OFF ).toBe( 'off' );
  16. }
  17. } );
  18. it( "unknown members", () => {
  19. const keys = Object.keys( others );
  20. expect( keys ).withContext( `Extra members: ${ keys.join( ", " ) }` ).toEqual( [] );
  21. } );
  22. } );