Skip to content

Commit 711e632

Browse files
committed
🎨 Formatted code
1 parent 7243eb3 commit 711e632

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

lib/src/parameterized_test_base.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void parameterizedTest(
3535
/// The test body which is executed for each test value.
3636
/// See [TestParameters] for more info on different bodies.
3737
TestParameters body, {
38-
/// Provide a custom description builder which will build the description for all the test values test executed.
38+
/// Provide a custom description builder which will build the description for all the test values test executed.
3939
CustomDescriptionBuilder? customDescriptionBuilder,
4040
dynamic Function()? setUp,
4141

lib/src/test_options/value_with_test_options.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class ValueWithTestOptions extends Iterable<dynamic> {
4747
testOptions ?? this.testOptions,
4848
groupDescription: groupDescription ?? this.groupDescription,
4949
index: index ?? this.index,
50-
customDiscriptionBuilder: customDiscriptionBuilder ?? this.customDiscriptionBuilder,
50+
customDiscriptionBuilder:
51+
customDiscriptionBuilder ?? this.customDiscriptionBuilder,
5152
);
5253
}
5354
}

test/test_options/value_with_test_options_test.dart

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,19 @@ void main() {
2929
result, "[ 'a', 'b', '', ' ', 1, 1.5, true, class with toString ]");
3030
});
3131

32-
test(
33-
'ValueWithTestOptions with customDescriptionBuilder',
34-
() {
35-
final result = ValueWithTestOptions(
36-
['a', 'b', '', ' ', 1, 1.5, true, _ClassWithToString()],
37-
testOptions,
38-
index: 10,
39-
groupDescription: 'group description',
40-
customDiscriptionBuilder: (groupDescription, index, values) => '🚀[$index] $groupDescription: <<${values.join('|')}>>',
41-
).description;
42-
43-
expect(
44-
result, "🚀[10] group description: <<a|b|| |1|1.5|true|class with toString>>");
45-
});
32+
test('ValueWithTestOptions with customDescriptionBuilder', () {
33+
final result = ValueWithTestOptions(
34+
['a', 'b', '', ' ', 1, 1.5, true, _ClassWithToString()],
35+
testOptions,
36+
index: 10,
37+
groupDescription: 'group description',
38+
customDiscriptionBuilder: (groupDescription, index, values) =>
39+
'🚀[$index] $groupDescription: <<${values.join('|')}>>',
40+
).description;
41+
42+
expect(result,
43+
"🚀[10] group description: <<a|b|| |1|1.5|true|class with toString>>");
44+
});
4645
});
4746
}
4847

0 commit comments

Comments
 (0)