Skip to content

Commit 72caacf

Browse files
committed
autocomplete test [nfc]: Deduplicate in test names
The full names of these tests were like this: MentionAutocompleteView sorting users results MentionAutocompleteView.compareRecentMessageIds both a and b are non-null MentionAutocompleteView sorting users results MentionAutocompleteView.compareRecentMessageIds one of a and b is null MentionAutocompleteView sorting users results MentionAutocompleteView.compareRecentMessageIds both of a and b are null MentionAutocompleteView sorting users results MentionAutocompleteView.compareByRecency favor user most recent in topic To see the names, one can run a command like: $ flutter test test/model/autocomplete_test.dart -r expanded We can cut the second mention of MentionAutocompleteView.
1 parent d91ecca commit 72caacf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/model/autocomplete_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ void main() {
370370
await store.addMessages(messages);
371371
}
372372

373-
group('MentionAutocompleteView.compareRecentMessageIds', () {
373+
group('compareRecentMessageIds', () {
374374
test('both a and b are non-null', () async {
375375
check(MentionAutocompleteView.compareRecentMessageIds(2, 5)).isLessThan(0);
376376
check(MentionAutocompleteView.compareRecentMessageIds(5, 2)).isGreaterThan(0);
@@ -387,7 +387,7 @@ void main() {
387387
});
388388
});
389389

390-
group('MentionAutocompleteView.compareByRecency', () {
390+
group('compareByRecency', () {
391391
final userA = eg.otherUser;
392392
final userB = eg.thirdUser;
393393
final stream = eg.stream();
@@ -438,7 +438,7 @@ void main() {
438438
});
439439
});
440440

441-
group('MentionAutocompleteView.compareByDms', () {
441+
group('compareByDms', () {
442442
const idA = 1;
443443
const idB = 2;
444444

0 commit comments

Comments
 (0)