UNPKG

passbolt-styleguide

Version:

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

16 lines (14 loc) 409 B
/** * Returns the default app context for the unit test * @param appContext An existing app context * @returns {any} */ import MockPort from "../../../react-extension/test/mock/MockPort"; export function defaultAppContext(appContext) { const defaultAppContext = { port: new MockPort(), updateSearch: () => {}, search: "", }; return Object.assign(defaultAppContext, appContext || {}); }