chore: remove the TranslatedMessage class and add the i18n field to the Message class

Tests have been updated to reflect the removal of this class
This commit is contained in:
groovinchip
2021-07-20 14:35:15 -04:00
parent c4a173f522
commit c3312c2da2
8 changed files with 35 additions and 56 deletions
@@ -371,9 +371,11 @@ void main() {
final path = '/messages/${message.id}/translate';
const translatedMessageText = 'नमस्ते';
final translatedMessage = TranslatedMessage(const {
language: translatedMessageText,
});
final translatedMessage = Message(
i18n: const {
language: translatedMessageText,
},
);
when(() => client.post(
path,