Skip to content

Commit 36b7582

Browse files
committed
refactor: rebase master branch
1 parent 1ed8c0a commit 36b7582

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/core/src/routes/admin-user/mfa-verifications.test.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
mockUserTotpMfaVerification,
99
mockUserWithMfaVerifications,
1010
} from '#src/__mocks__/index.js';
11+
import { type InsertUserResult } from '#src/libraries/user.js';
1112
import type Libraries from '#src/tenants/Libraries.js';
1213
import type Queries from '#src/tenants/Queries.js';
1314
import { MockTenant, type Partial2 } from '#src/test-utils/tenant.js';
@@ -44,10 +45,13 @@ const mockLibraries = {
4445
users: {
4546
generateUserId: jest.fn(async () => 'fooId'),
4647
insertUser: jest.fn(
47-
async (user: CreateUser): Promise<User> => ({
48-
...mockUser,
49-
...removeUndefinedKeys(user), // No undefined values will be returned from database
50-
})
48+
async (user: CreateUser): Promise<InsertUserResult> => [
49+
{
50+
...mockUser,
51+
...removeUndefinedKeys(user), // No undefined values will be returned from database
52+
},
53+
{ organizationIds: [] },
54+
]
5155
),
5256
updateUserById: jest.fn(
5357
async (_, data: Partial<CreateUser>): Promise<User> => ({

0 commit comments

Comments
 (0)