feat: unify Person and User creation form with conditional password
This commit is contained in:
@@ -258,4 +258,4 @@ describe("createPersonUserUseCase", () => {
|
||||
expect(result).toEqual({ success: true })
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -86,7 +86,9 @@ describe("user use-cases", () => {
|
||||
|
||||
await expect(prisma.user.count()).resolves.toBe(1)
|
||||
await expect(
|
||||
prisma.user.findUniqueOrThrow({ where: { email: "existing@example.test" } }),
|
||||
prisma.user.findUniqueOrThrow({
|
||||
where: { email: "existing@example.test" },
|
||||
}),
|
||||
).resolves.toMatchObject({ email: "existing@example.test" })
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user