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.

functions.js 498B

123456789101112131415
  1. // @flow
  2. /**
  3. * Indicates whether the test mode is enabled. When it's enabled
  4. * {@link TestHint} and other components from the testing package will be
  5. * rendered in various places across the app to help with automatic testing.
  6. *
  7. * @param {Object} state - The redux store state.
  8. * @returns {boolean}
  9. */
  10. export function isTestModeEnabled(state: Object): boolean {
  11. const testingConfig = state['features/base/config'].testing;
  12. return Boolean(testingConfig && testingConfig.testMode);
  13. }