Skip to content

Commit

Permalink
Merge pull request #5 from monisnap-julien/feature/code_format
Browse files Browse the repository at this point in the history
🎨 Minor code formatting
  • Loading branch information
themisir authored Aug 10, 2020
2 parents 1951989 + 9102b8d commit 3e03b1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/src/i18n/tr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ class LocaleTr extends FormValidatorLocale {
String name() => 'tr';

@override
String minLength(String v, int n) =>
'Bu alan en az $n harf olmalı';
String minLength(String v, int n) => 'Bu alan en az $n harf olmalı';

@override
String maxLength(String v, int n) =>
'Bu alan en fazla $n harf olmalı';
String maxLength(String v, int n) => 'Bu alan en fazla $n harf olmalı';

@override
String email(String v) => 'Email adresi geçerli değil';
Expand Down
3 changes: 2 additions & 1 deletion test/localization_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ void validateLocale(ValidationBuilder builder, FormValidatorLocale locale) {
expect(builder.reset().maxLength(1).test('abc'),
equals(locale.maxLength('abc', 1)));
expect(builder.reset().email().test('abc'), equals(locale.email('abc')));
expect(builder.reset().phone().test('abc'), equals(locale.phoneNumber('abc')));
expect(
builder.reset().phone().test('abc'), equals(locale.phoneNumber('abc')));
expect(builder.reset().url().test('abc'), equals(locale.url('abc')));
expect(builder.reset().ip().test('abc'), equals(locale.ip('abc')));
expect(builder.reset().ipv6().test('abc'), equals(locale.ipv6('abc')));
Expand Down

0 comments on commit 3e03b1a

Please sign in to comment.