passbolt-styleguide
Version:
Passbolt styleguide contains common styling assets used by the different sites, plugin, etc.
15 lines (13 loc) • 392 B
JavaScript
/**
* 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(),
isAuthenticated: true,
};
return Object.assign(defaultAppContext, appContext || {});
}