您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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