Skip to content

Commit be0f87d

Browse files
committed
emoji_reaction test [nfc]: Refactor helper default params
1 parent 2fe18b7 commit be0f87d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/widgets/emoji_reaction_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ void main() {
3939

4040
Future<void> setupChipsInBox(WidgetTester tester, {
4141
required List<Reaction> reactions,
42-
double? width,
43-
TextDirection? textDirection,
42+
double width = 245.0, // (seen in context on an iPhone 13 Pro)
43+
TextDirection textDirection = TextDirection.ltr,
4444
}) async {
4545
final message = eg.streamMessage(reactions: reactions);
4646

4747
await tester.pumpWidget(
4848
MaterialApp(
4949
home: Directionality(
50-
textDirection: textDirection ?? TextDirection.ltr,
50+
textDirection: textDirection,
5151
child: GlobalStoreWidget(
5252
child: PerAccountStoreWidget(
5353
accountId: eg.selfAccount.id,
5454
child: Center(
5555
child: ColoredBox(
5656
color: Colors.white,
5757
child: SizedBox(
58-
width: width ?? 245.0, // (seen in context on an iPhone 13 Pro)
58+
width: width,
5959
child: ReactionChipsList(
6060
messageId: message.id,
6161
reactions: message.reactions!,

0 commit comments

Comments
 (0)