use automocking in offline.spec.ts

This commit is contained in:
Rory Powell 2023-07-13 22:06:52 +01:00
parent a74469b8ae
commit 166156d3b5
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ import {
} from "@budibase/types" } from "@budibase/types"
import _ from "lodash" import _ from "lodash"
export const account = (): Account => { export const account = (partial: Partial<Account> = {}): Account => {
return { return {
accountId: uuid(), accountId: uuid(),
tenantId: generator.word(), tenantId: generator.word(),
@ -29,6 +29,7 @@ export const account = (): Account => {
size: "10+", size: "10+",
profession: "Software Engineer", profession: "Software Engineer",
quotaUsage: quotas.usage(), quotaUsage: quotas.usage(),
...partial
} }
} }