MCPcopy Create free account
hub / github.com/LeChatErrant/API-template / validateUser

Function validateUser

src/routes/user/user.spec.ts:50–57  ·  view source on GitHub ↗
(user: any)

Source from the content-addressed store, hash-verified

48});
49
50function validateUser(user: any) {
51 expect(user.email).toBe(baseUser.email);
52 expect(user.username).toBe(baseUser.username);
53 expect(user.password).toBeUndefined();
54 expect(user.id).toBeDefined();
55 expect(user.createdAt).toBeDefined();
56 expect(user.role).toBe(Role.USER);
57}
58
59/* Signup */
60

Callers 1

user.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected