Skip to content

Commit

Permalink
test: Cut specific emails in eg.selfUser, eg.otherUser, and friends
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gnprice committed Dec 9, 2024
1 parent ce5b0d3 commit b7abde3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/example_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,23 +171,23 @@ Account account({
);
}

final User selfUser = user(fullName: 'Self User', email: 'self@example');
final User selfUser = user(fullName: 'Self User');
final Account selfAccount = account(
id: 1001,
user: selfUser,
apiKey: 'dQcEJWTq3LczosDkJnRTwf31zniGvMrO', // A Zulip API key is 32 digits of base64.
);

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

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

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

////////////////////////////////////////////////////////////////
// Streams and subscriptions.
Expand Down

0 comments on commit b7abde3

Please sign in to comment.