UNPKG

passbolt-styleguide

Version:

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

24 lines (21 loc) 526 B
/** * Returns the default app context for the unit test * @param appContext An existing app context * @returns {any | ({userSettings: UserSettings, siteSettings: SiteSettings, port: MockPort} & {})} */ export function defaultAppContext(appContext) { const defaultAppContext = { }; return Object.assign(defaultAppContext, appContext || {}); } /** * Default props * @returns {{resource: {id: string, name: string}}} */ export function defaultProps() { return { history: { push: jest.fn() } }; }