MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / givenAccount

Function givenAccount

examples/references-many/src/__tests__/helpers.ts:51–54  ·  view source on GitHub ↗
(account?: Partial<Account>)

Source from the content-addressed store, hash-verified

49 * @param account - A partial (or complete) Account object.
50 */
51export function givenAccount(account?: Partial<Account>) {
52 const data = Object.assign({balance: 999}, account);
53 return new Account(data);
54}
55
56export async function givenRunningApplicationWithCustomConfiguration() {
57 const app = new ReferencesManyApplication({

Callers 3

resetRepositoriesFunction · 0.90
givenAccountInstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected