This commit is contained in:
Adria Navarro 2024-01-03 12:11:25 +01:00
parent 4db5d9dab2
commit 8b866a53c8
1 changed files with 1 additions and 2 deletions

View File

@ -263,9 +263,8 @@ describe("/api/global/auth", () => {
// convert to account owner now that password has been requested // convert to account owner now that password has been requested
const account: CloudAccount = { const account: CloudAccount = {
...structures.accounts.ssoAccount(), ...structures.accounts.ssoAccount(),
budibaseUserId: user._id!, budibaseUserId: "budibaseUserId",
email: user.email, email: user.email,
tenantId: config.getTenantId(),
} }
mocks.accounts.getAccountByTenantId.mockReturnValueOnce( mocks.accounts.getAccountByTenantId.mockReturnValueOnce(
Promise.resolve(account) Promise.resolve(account)