Fully move backup integration test to mock server
This commit is contained in:
parent
12f28448b2
commit
bad065859c
24 changed files with 508 additions and 232 deletions
|
@ -2,10 +2,11 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as RemoteConfig from '../RemoteConfig';
|
||||
import { isTestOrMockEnvironment } from '../environment';
|
||||
import { isStagingServer } from './isStagingServer';
|
||||
|
||||
export function isBackupEnabled(): boolean {
|
||||
if (isStagingServer()) {
|
||||
if (isStagingServer() || isTestOrMockEnvironment()) {
|
||||
return true;
|
||||
}
|
||||
return Boolean(RemoteConfig.isEnabled('desktop.backup.credentialFetch'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue