Fix of minor JSON formating bug

This commit is contained in:
Samuel Hawksby-Robinson 2020-07-10 16:54:59 +01:00 committed by Andrea Maria Piana
parent 412f6c6280
commit f16285ea0d
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 1 additions and 1 deletions

View File

@ -2087,7 +2087,7 @@ func (s *MessengerSuite) TestMessageJSON() {
From: "from-field", From: "from-field",
} }
expectedJSON := `{"id":"test-1","whisperTimestamp":0,"from":"from-field","alias":"alias","identicon":"","seen":false,"quotedMessage":null,"rtl":false,"parsedText":null,"lineCount":0,"text":"test-1","chatId":"remote-chat-id","localChatId":"local-chat-id","clock":1,"replace":"","responseTo":"","ensName":"","sticker":null,"commandParameters":null,"timestamp":0,"contentType":0,"messageType":0}` expectedJSON := `{"id":"test-1","whisperTimestamp":0,"from":"from-field","alias":"alias","identicon":"","seen":false,"quotedMessage":null,"rtl":false,"parsedText":null,"lineCount":0,"text":"test-1","chatId":"remote-chat-id","localChatId":"local-chat-id","clock":1,"replace":"","responseTo":"","ensName":"","sticker":null,"emojiReaction":null,"emojiReactionRetraction":null,"commandParameters":null,"timestamp":0,"contentType":0,"messageType":0}`
messageJSON, err := json.Marshal(message) messageJSON, err := json.Marshal(message)
s.Require().NoError(err) s.Require().NoError(err)