Members: approve refuses no-membership/unknown accounts; neutral text for legacy suspensions (#65)
This commit is contained in:
parent
e12b8e2298
commit
1da912d5e9
5 changed files with 160 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue