mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
Carry the owner's full name through the account-access round trip test
The account payload gained a full-name field; this integration test built its expected entries without it, so the exact-match assertions disagreed with the response. The fixtures name the field now, null for an owner who set no full name.
This commit is contained in:
1 parent
08d3cd2c31
commit
9456b18497
1 file changed
+3
@@ -70,6 +70,7 @@ interface AccountAccessEntry {
|
||||
accountId: string;
|
||||
username: string;
|
||||
displayName: string | null;
|
||||
fullName: string | null;
|
||||
/**
|
||||
* The legacy name, and deliberately narrower than `level`: it carries only
|
||||
* `read` and `write`, because that is the union v1.36.0 published and
|
||||
@@ -173,6 +174,7 @@ describe("accountAccess — what the payload publishes", () => {
|
||||
accountId: owner.id,
|
||||
username: owner.username,
|
||||
displayName: owner.displayName,
|
||||
fullName: owner.fullName,
|
||||
access: "read",
|
||||
level: "read",
|
||||
// An adult who shared their own record. `managed` is reserved for a
|
||||
@@ -334,6 +336,7 @@ describe("accountAccess — the active record", () => {
|
||||
accountId: owner.id,
|
||||
username: owner.username,
|
||||
displayName: owner.displayName,
|
||||
fullName: owner.fullName,
|
||||
access: "read",
|
||||
level: "read",
|
||||
recordKind: "shared",
|
||||
|
||||
Reference in new issue
Block a user