mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-04-08 03:40:20 +00:00
16 lines
498 B
JavaScript
16 lines
498 B
JavaScript
|
|
// @flow
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Indicates whether the test mode is enabled. When it's enabled
|
||
|
|
* {@link TestHint} and other components from the testing package will be
|
||
|
|
* rendered in various places across the app to help with automatic testing.
|
||
|
|
*
|
||
|
|
* @param {Object} state - The redux store state.
|
||
|
|
* @returns {boolean}
|
||
|
|
*/
|
||
|
|
export function isTestModeEnabled(state: Object): boolean {
|
||
|
|
const testingConfig = state['features/base/config'].testing;
|
||
|
|
|
||
|
|
return Boolean(testingConfig && testingConfig.testMode);
|
||
|
|
}
|