mirror of
https://github.com/Dvorinka/1356.git
synced 2026-10-28 23:21:15 +00:00
main, fix
This commit is contained in:
1 parent
d712fe1074
commit
9f44fd57f7
11 files changed
+492
-194
No files matched your search
@@ -19,7 +19,7 @@ void main() {
|
||||
test('should return null for valid email', () {
|
||||
expect(Validators.validateEmail('[email protected]'), isNull);
|
||||
expect(Validators.validateEmail('[email protected]'), isNull);
|
||||
expect(Validators.validateEmail('test_user+tag@example.com'), isNull);
|
||||
expect(Validators.validateEmail('[email protected]'), 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