mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 11:26:34 +00:00
[AZ-200] Drop email length rule
Made-with: Cursor
This commit is contained in:
@@ -161,14 +161,14 @@ public sealed class UserManagementTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Registration_rejects_short_email_with_400()
|
||||
public async Task Registration_rejects_empty_email_with_400()
|
||||
{
|
||||
// Arrange
|
||||
using var client = _fixture.CreateAuthenticatedClient(_fixture.AdminToken);
|
||||
|
||||
// Act
|
||||
using var response = await client.PostAsync("/users",
|
||||
new { email = "ab@c.de", password = "ValidPass123", role = 10 });
|
||||
new { email = "", password = "ValidPass123", role = 10 });
|
||||
|
||||
// Assert
|
||||
response.StatusCode.Should().Be(HttpStatusCode.BadRequest);
|
||||
|
||||
Reference in New Issue
Block a user