MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / createMockUser

Function createMockUser

pages/dav_test.ts:14–24  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

12config.files.rootPath = tempRootDir;
13
14function createMockUser(userId: string): User {
15 return {
16 id: userId,
17 email: `${userId}@example.com`,
18 hashed_password: 'unused-in-tests',
19 subscription: { external: {}, expires_at: '', updated_at: '' },
20 status: 'active',
21 extra: { is_email_verified: true },
22 created_at: new Date(),
23 };
24}
25
26async function setUpUser(): Promise<{ user: User; userRootPath: string }> {
27 const userId = crypto.randomUUID();

Callers 1

setUpUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected