Skip to content

Commit 6ad5b05

Browse files
committed
msglist test: Use hasAlertWord flag in a test that just needs some flag
In this test, it's not important that specifically the starred flag is used; the hasAlertWord flag works just as well. It would be a bit annoying to refactor this around the starred flag, when we add a data structure for starred messages, coming up.
1 parent b925648 commit 6ad5b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/model/message_list_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,12 +2202,12 @@ void main() {
22022202
await checkApplied(
22032203
mkEvent: (message) => UpdateMessageFlagsAddEvent(
22042204
id: 1,
2205-
flag: MessageFlag.starred,
2205+
flag: MessageFlag.hasAlertWord,
22062206
messages: [message.id],
22072207
all: false,
22082208
),
22092209
doCheckMessageAfterFetch:
2210-
(messageSubject) => messageSubject.flags.contains(MessageFlag.starred),
2210+
(messageSubject) => messageSubject.flags.contains(MessageFlag.hasAlertWord),
22112211
);
22122212
});
22132213
});

0 commit comments

Comments
 (0)