Members: approve refuses no-membership/unknown accounts; neutral text for legacy suspensions (#65)

This commit is contained in:
Heimdall 2026-11-11 16:39:48 +00:00
commit 1da912d5e9
5 changed files with 160 additions and 8 deletions

View file

@ -65,7 +65,7 @@ public sealed class SuspensionReasonExposureTests
return model.Users;
}
Assert.All(await UsersSeenBy(admin: false), u => Assert.DoesNotContain(Canary, u.SuspensionReason));
Assert.All(await UsersSeenBy(admin: false), u => Assert.Equal(string.Empty, u.SuspensionReason)); // not even the legacy-row marker leaves the projection for a non-admin
Assert.Contains(await UsersSeenBy(admin: true), u => u.SuspensionReason == Canary);
}