Skip to content

Commit 20c4f22

Browse files
committed
test [nfc]: Have eg.user accept dateJoined and role
1 parent aa8e38c commit 20c4f22

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/example_data.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ User user({
8080
String? deliveryEmail,
8181
String? email,
8282
String? fullName,
83+
String? dateJoined,
8384
bool? isActive,
8485
bool? isBot,
86+
UserRole? role,
8587
String? avatarUrl,
8688
Map<int, ProfileFieldUserData>? profileData,
8789
}) {
@@ -92,13 +94,13 @@ User user({
9294
deliveryEmail: effectiveDeliveryEmail,
9395
email: email ?? effectiveDeliveryEmail,
9496
fullName: fullName ?? 'A user', // TODO generate example names
95-
dateJoined: '2023-04-28',
97+
dateJoined: dateJoined ?? '2023-04-28',
9698
isActive: isActive ?? true,
9799
isBillingAdmin: false,
98100
isBot: isBot ?? false,
99101
botType: null,
100102
botOwnerId: null,
101-
role: UserRole.member,
103+
role: role ?? UserRole.member,
102104
timezone: 'UTC',
103105
avatarUrl: avatarUrl,
104106
avatarVersion: 0,

0 commit comments

Comments
 (0)