Skip to content

Commit 6e72a5b

Browse files
committed
autocomplete test [nfc]: Tighten names of compareByRecency tests
This way they fit on a line.
1 parent a5b3cc8 commit 6e72a5b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/model/autocomplete_test.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,24 +411,22 @@ void main() {
411411
return resultAB;
412412
}
413413

414-
test('prioritizes the user with more recent activity in the topic', () async {
414+
test('favor user most recent in topic', () async {
415415
await prepare(messages: [message(userA, topic1), message(userB, topic1)]);
416416
check(compareAB(topic: topic1)).isGreaterThan(0);
417417
});
418418

419-
test('no activity in topic -> prioritizes the user with more recent '
420-
'activity in the stream', () async {
419+
test('no activity in topic -> favor user most recent in stream', () async {
421420
await prepare(messages: [message(userA, topic1), message(userB, topic1)]);
422421
check(compareAB(topic: topic2)).isGreaterThan(0);
423422
});
424423

425-
test('no topic provided -> prioritizes the user with more recent '
426-
'activity in the stream', () async {
424+
test('no topic provided -> favor user most recent in stream', () async {
427425
await prepare(messages: [message(userA, topic1), message(userB, topic2)]);
428426
check(compareAB(topic: null)).isGreaterThan(0);
429427
});
430428

431-
test('no activity in topic/stream -> prioritizes none', () async {
429+
test('no activity in topic/stream -> favor none', () async {
432430
await prepare(messages: []);
433431
check(compareAB(topic: null)).equals(0);
434432
});

0 commit comments

Comments
 (0)