Skip to content

Commit

Permalink
tests: Fix eg.dmMessage's flags argument after converting to enum
Browse files Browse the repository at this point in the history
The conversion to an enum was done in 9829f60.
  • Loading branch information
chrisbobbe committed Oct 23, 2023
1 parent e546b28 commit 528651b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/example_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ DmMessage dmMessage({
List<MessageFlag>? flags,
}) {
assert(!to.any((user) => user.userId == from.userId));
return DmMessage.fromJson({
return DmMessage.fromJson(deepToJson({
..._messagePropertiesBase,
..._messagePropertiesFromSender(from),
..._messagePropertiesFromContent(content, contentMarkdown),
Expand All @@ -210,7 +210,7 @@ DmMessage dmMessage({
'subject': '',
'timestamp': timestamp ?? 1678139636,
'type': 'private',
});
}) as Map<String, dynamic>);
}

Reaction unicodeEmojiReaction = Reaction(
Expand Down

0 comments on commit 528651b

Please sign in to comment.