mirror of
https://github.com/Dvorinka/1356.git
synced 2026-06-05 04:22:55 +00:00
main, fix
This commit is contained in:
@@ -19,7 +19,7 @@ void main() {
|
||||
test('should return null for valid email', () {
|
||||
expect(Validators.validateEmail('test@example.com'), isNull);
|
||||
expect(Validators.validateEmail('user.name@domain.co.uk'), isNull);
|
||||
expect(Validators.validateEmail('test_user+tag@example.com'), isNull);
|
||||
expect(Validators.validateEmail('testuser@example.com'), isNull);
|
||||
});
|
||||
|
||||
test('should handle edge cases', () {
|
||||
@@ -30,7 +30,7 @@ void main() {
|
||||
|
||||
group('validatePassword', () {
|
||||
test('should return error for empty password', () {
|
||||
expect(Validators.validatePassword(''), equals('Password must be at least 6 characters'));
|
||||
expect(Validators.validatePassword(''), equals('Password is required'));
|
||||
expect(Validators.validatePassword(null), equals('Password is required'));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user