Skip to content

Commit 57dc8b5

Browse files
committed
content test [nfc]: Fix testFontWeight's return type
This just calls `testWidgets` twice; there's no Future that callers should want to await.
1 parent 645ae8a commit 57dc8b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/widgets/content_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ void main() {
186186
/// [styleFinder] must return the [TextStyle] containing the "wght"
187187
/// (in [TextStyle.fontVariations]) and the [TextStyle.fontWeight]
188188
/// to be checked.
189-
Future<void> testFontWeight(String description, {
189+
void testFontWeight(String description, {
190190
required Widget content,
191191
required double expectedWght,
192192
required TextStyle Function(WidgetTester tester) styleFinder,
193-
}) async {
193+
}) {
194194
for (final platformRequestsBold in [false, true]) {
195195
testWidgets(
196196
description + (platformRequestsBold ? ' (platform requests bold)' : ''),

0 commit comments

Comments
 (0)