Skip to content

Commit 32121ab

Browse files
committed
Refactor: Format number_validator_test.dart
This commit refactors the `number_validator_test.dart` file by applying consistent formatting to a test case. The changes involve adjusting indentation and line breaks for improved readability. No functional changes were made.
1 parent 63206aa commit 32121ab

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

test/src/validators/number_validator_test.dart

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,20 @@ void main() {
191191
);
192192
});
193193

194-
test('FormControl invalid with invalid characters and no decimal point', () {
195-
final control = FormControl<String>(validators: [Validators.number()]);
194+
test(
195+
'FormControl invalid with invalid characters and no decimal point',
196+
() {
197+
final control = FormControl<String>(validators: [Validators.number()]);
196198

197-
control.value = '1a0';
199+
control.value = '1a0';
198200

199-
expect(control.valid, false);
200-
expect(
201-
control.errors[ValidationMessage.number],
202-
NumberValidatorError.invalidNumber,
203-
);
204-
});
201+
expect(control.valid, false);
202+
expect(
203+
control.errors[ValidationMessage.number],
204+
NumberValidatorError.invalidNumber,
205+
);
206+
},
207+
);
205208

206209
test('FormControl valid with a dot at the beginning', () {
207210
final control = FormControl<String>(

0 commit comments

Comments
 (0)