mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 13:08:17 -05:00
missed the test 🤦
This commit is contained in:
parent
b5cbd1ac23
commit
3d8ec3c041
@ -171,7 +171,7 @@ public class OrganizationsControllerTests : IDisposable
|
|||||||
_userService.GetOrganizationsClaimingUserAsync(user.Id).Returns(new List<Organization> { { foundOrg } });
|
_userService.GetOrganizationsClaimingUserAsync(user.Id).Returns(new List<Organization> { { foundOrg } });
|
||||||
var exception = await Assert.ThrowsAsync<BadRequestException>(() => _sut.Leave(orgId));
|
var exception = await Assert.ThrowsAsync<BadRequestException>(() => _sut.Leave(orgId));
|
||||||
|
|
||||||
Assert.Contains("Managed user account cannot leave managing organization. Contact your organization administrator for additional details.",
|
Assert.Contains("Claimed user account cannot leave claiming organization. Contact your organization administrator for additional details.",
|
||||||
exception.Message);
|
exception.Message);
|
||||||
|
|
||||||
await _removeOrganizationUserCommand.DidNotReceiveWithAnyArgs().RemoveUserAsync(default, default);
|
await _removeOrganizationUserCommand.DidNotReceiveWithAnyArgs().RemoveUserAsync(default, default);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user