Skip to content

Commit 119a1de

Browse files
committed
test: Have eg.user accept avatarUrl
1 parent 7c77e93 commit 119a1de

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/example_data.dart

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ const String recentZulipVersion = '8.0';
1010
const int recentZulipFeatureLevel = 185;
1111
const int futureZulipFeatureLevel = 9999;
1212

13-
User user({int? userId, String? email, String? fullName}) {
13+
User user({
14+
int? userId,
15+
String? email,
16+
String? fullName,
17+
String? avatarUrl,
18+
}) {
1419
return User(
1520
userId: userId ?? 123, // TODO generate example IDs
1621
deliveryEmailStaleDoNotUse: '[email protected]',
@@ -25,7 +30,7 @@ User user({int? userId, String? email, String? fullName}) {
2530
isBot: false,
2631
role: 400,
2732
timezone: 'UTC',
28-
avatarUrl: null,
33+
avatarUrl: avatarUrl,
2934
avatarVersion: 0,
3035
profileData: null,
3136
);

0 commit comments

Comments
 (0)