diff --git a/Govor.API.Tests/IntegrationTests/Controllers/AuthControllerTests.cs b/Govor.API.Tests/IntegrationTests/Controllers/AuthControllerTests.cs index 82808d2..010dd68 100644 --- a/Govor.API.Tests/IntegrationTests/Controllers/AuthControllerTests.cs +++ b/Govor.API.Tests/IntegrationTests/Controllers/AuthControllerTests.cs @@ -86,8 +86,8 @@ public class AuthControllerTests var result = await _controller.Register(request); // Assert - Assert.That(result, Is.InstanceOf()); - var notFoundObjectResult = result as NotFoundObjectResult; + Assert.That(result, Is.InstanceOf()); + var notFoundObjectResult = result as BadRequestObjectResult; Assert.That(notFoundObjectResult.Value, Is.EqualTo("Invite link invalid.")); }