Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

E2ePingEvents.spec.ts 764B

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