UNPKG

passbolt-styleguide

Version:

Passbolt styleguide contains common styling assets used by the different sites, plugin, etc.

70 lines (68 loc) 3.4 kB
/** * Passbolt ~ Open source password manager for teams * Copyright (c) 2022 Passbolt SA (https://www.passbolt.com) * * Licensed under GNU Affero General Public License version 3 of the or any later version. * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) 2022 Passbolt SA (https://www.passbolt.com) * @license https://opensource.org/licenses/AGPL-3.0 AGPL License * @link https://www.passbolt.com Passbolt(tm) * @since 3.8.0 */ /** * Returns the default navigation context for the unit test * @param context An existing navigation context * @returns {object} */ export function defaultNavigationContext(context = {}) { const defaultContext = { onGoToNewTab: jest.fn(), onGoToPasswordsRequested: jest.fn(), // Administration onGoToAdministrationRequested: jest.fn(), onGoToAdministrationSelfRegistrationRequested: jest.fn(), onGoToAdministrationMfaRequested: jest.fn(), onGoToAdministrationUsersDirectoryRequested: jest.fn(), onGoToAdministrationEmailNotificationsRequested: jest.fn(), onGoToAdministrationSubscriptionRequested: jest.fn(), onGoToAdministrationInternationalizationRequested: jest.fn(), onGoToAdministrationAccountRecoveryRequested: jest.fn(), onGoToAdministrationSmtpSettingsRequested: jest.fn(), onGoToAdministrationSsoRequested: jest.fn(), onGoToAdministrationPasswordPoliciesRequested: jest.fn(), onGoToAdministrationSecretHistoryRequested: jest.fn(), onGoToAdministrationUserPassphrasePoliciesRequested: jest.fn(), onGoToAdministrationPasswordExpirySettingsRequested: jest.fn(), onGoToAdministrationHealthcheckRequested: jest.fn(), onGoToUsersRequested: jest.fn(), onGoToHelpRequested: jest.fn(), onGoToUserSettingsProfileRequested: jest.fn(), onGoToUserSettingsPassphraseRequested: jest.fn(), onGoToUserSettingsSecurityTokenRequested: jest.fn(), onGoToUserSettingsThemeRequested: jest.fn(), onGoToUserSettingsMfaRequested: jest.fn(), onGoToUserSettingsKeysRequested: jest.fn(), onGoToUserSettingsMobileRequested: jest.fn(), onGoToUserSettingsDesktopRequested: jest.fn(), onGoToUserSettingsAccountRecoveryRequested: jest.fn(), onGoToAdministrationRbacsRequested: jest.fn(), onGoToAdministrationMigrateMetadataRequested: jest.fn(), onGoToAdministrationAllowContentTypesRequested: jest.fn(), onGoToAdministrationSubscriptionRequestedTeasing: jest.fn(), onGoToAdministrationPasswordPoliciesRequestedTeasing: jest.fn(), onGoToAdministrationUserPassphrasePoliciesRequestedTeasing: jest.fn(), onGoToAdministrationAccountRecoveryRequestedTeasing: jest.fn(), onGoToAdministrationSsoRequestedTeasing: jest.fn(), onGoToAdministrationMfaPolicyRequestedTeasing: jest.fn(), onGoToAdministrationUsersDirectoryRequestedTeasing: jest.fn(), onGoToAdministrationScimRequestedTeasing: jest.fn(), onGoToAdministrationScimRequested: jest.fn(), onGoToAdministrationMfaPolicyRequested: jest.fn(), onGoToAdministrationContentTypesMetadataKeyRequested: jest.fn(), onGoToAdministrationContentTypesEncryptedMetadataRequested: jest.fn(), onGoToAdministrationMetadataGettingStartedRequested: jest.fn(), }; return Object.assign(defaultContext, context); }