mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
fix tests
This commit is contained in:
parent
a4df397c7e
commit
047307b48a
@ -21,8 +21,8 @@ public class OrganizationRequirementHandlerTests
|
||||
var authContext = new AuthorizationHandlerContext([testRequirement], new ClaimsPrincipal(), null);
|
||||
|
||||
// Act
|
||||
var exception = await Assert.ThrowsAsync<Exception>(() => sutProvider.Sut.HandleAsync(authContext));
|
||||
Assert.Contains("No organizationId found", exception.Message);
|
||||
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => sutProvider.Sut.HandleAsync(authContext));
|
||||
Assert.Contains("should include a route value named 'orgId'", exception.Message);
|
||||
Assert.False(authContext.HasSucceeded);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user