From 9102b8d9967d8b23c26c3874b8821144bac296b6 Mon Sep 17 00:00:00 2001 From: monisnap-julien Date: Mon, 10 Aug 2020 21:00:50 +0200 Subject: [PATCH] :art: Minor code formatting --- lib/src/i18n/tr.dart | 6 ++---- test/localization_test.dart | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/src/i18n/tr.dart b/lib/src/i18n/tr.dart index 45a972f..90ea7f0 100644 --- a/lib/src/i18n/tr.dart +++ b/lib/src/i18n/tr.dart @@ -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'; diff --git a/test/localization_test.dart b/test/localization_test.dart index 87e650a..dd83e7a 100644 --- a/test/localization_test.dart +++ b/test/localization_test.dart @@ -17,7 +17,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')));