Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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. }