feat(people): adapt person user flows to status model
This commit is contained in:
@@ -58,9 +58,9 @@ const basePerson: PersonWithUser = {
|
||||
email: "ada@example.test",
|
||||
phone: "1234",
|
||||
userId: null,
|
||||
isActive: true,
|
||||
createdAt: new Date("2024-01-01"),
|
||||
updatedAt: new Date("2024-01-01"),
|
||||
deletedAt: null,
|
||||
user: null,
|
||||
}
|
||||
|
||||
@@ -73,10 +73,9 @@ const personWithUser: PersonWithUser = {
|
||||
name: "Ada Lovelace",
|
||||
email: "ada@example.test",
|
||||
role: "ADMIN",
|
||||
isActive: true,
|
||||
status: "ACTIVE",
|
||||
createdAt: new Date("2024-01-01"),
|
||||
updatedAt: new Date("2024-01-01"),
|
||||
password: "hashed",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -137,7 +136,7 @@ describe("edit person page wiring", () => {
|
||||
user: expect.objectContaining({
|
||||
id: "user-1",
|
||||
role: "ADMIN",
|
||||
isActive: true,
|
||||
status: "ACTIVE",
|
||||
}),
|
||||
}),
|
||||
formCopy: es.admin.users.form,
|
||||
|
||||
Reference in New Issue
Block a user