Skip to content

Commit b7abde3

Browse files
committed
test: Cut specific emails in eg.selfUser, eg.otherUser, and friends
Most of our tests don't and shouldn't care what the specific email address of a given user object is. I think these were originally here because `eg.user` didn't generate fresh emails, so the caller needed to invent them in order to keep them distinct. But since d1a2538 it does, and the caller needn't.
1 parent ce5b0d3 commit b7abde3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/example_data.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,23 +171,23 @@ Account account({
171171
);
172172
}
173173

174-
final User selfUser = user(fullName: 'Self User', email: 'self@example');
174+
final User selfUser = user(fullName: 'Self User');
175175
final Account selfAccount = account(
176176
id: 1001,
177177
user: selfUser,
178178
apiKey: 'dQcEJWTq3LczosDkJnRTwf31zniGvMrO', // A Zulip API key is 32 digits of base64.
179179
);
180180

181-
final User otherUser = user(fullName: 'Other User', email: 'other@example');
181+
final User otherUser = user(fullName: 'Other User');
182182
final Account otherAccount = account(
183183
id: 1002,
184184
user: otherUser,
185185
apiKey: '6dxT4b73BYpCTU+i4BB9LAKC5h/CufqY', // A Zulip API key is 32 digits of base64.
186186
);
187187

188-
final User thirdUser = user(fullName: 'Third User', email: 'third@example');
188+
final User thirdUser = user(fullName: 'Third User');
189189

190-
final User fourthUser = user(fullName: 'Fourth User', email: 'fourth@example');
190+
final User fourthUser = user(fullName: 'Fourth User');
191191

192192
////////////////////////////////////////////////////////////////
193193
// Streams and subscriptions.

0 commit comments

Comments
 (0)