refactor: move MessageBuilder snapshot test to IrcMessageHandler (#5654)
This commit is contained in:
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"input": "@tmi-sent-ts=1662201102276;emotes=84609:0-1 :test!test@test.tmi.twitch.tv PRIVMSG #pajlada :foo bar",
|
||||
"output": [
|
||||
{
|
||||
"badgeInfos": {
|
||||
},
|
||||
"badges": [
|
||||
],
|
||||
"channelName": "pajlada",
|
||||
"count": 1,
|
||||
"displayName": "",
|
||||
"elements": [
|
||||
{
|
||||
"color": "System",
|
||||
"flags": "ChannelName",
|
||||
"link": {
|
||||
"type": "JumpToChannel",
|
||||
"value": "pajlada"
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"#pajlada"
|
||||
]
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"color": "System",
|
||||
"flags": "Timestamp",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"10:31"
|
||||
]
|
||||
},
|
||||
"flags": "Timestamp",
|
||||
"format": "",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"time": "10:31:42",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TimestampElement"
|
||||
},
|
||||
{
|
||||
"flags": "ModeratorTools",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TwitchModerationElement"
|
||||
},
|
||||
{
|
||||
"color": "#ff999999",
|
||||
"flags": "Username",
|
||||
"link": {
|
||||
"type": "UserInfo",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMediumBold",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"test:"
|
||||
]
|
||||
},
|
||||
{
|
||||
"emote": {
|
||||
"images": {
|
||||
"1x": "https://static-cdn.jtvnw.net/emoticons/v2/84609/default/dark/1.0",
|
||||
"2x": "https://static-cdn.jtvnw.net/emoticons/v2/84609/default/dark/2.0",
|
||||
"3x": "https://static-cdn.jtvnw.net/emoticons/v2/84609/default/dark/3.0"
|
||||
},
|
||||
"name": "fo",
|
||||
"tooltip": "fo<br>Twitch Emote"
|
||||
},
|
||||
"flags": "TwitchEmoteImage|TwitchEmoteText",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"text": {
|
||||
"color": "Text",
|
||||
"flags": "Misc",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"fo"
|
||||
]
|
||||
},
|
||||
"tooltip": "fo<br>Twitch Emote",
|
||||
"trailingSpace": false,
|
||||
"type": "EmoteElement"
|
||||
},
|
||||
{
|
||||
"color": "Text",
|
||||
"flags": "Text",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"o"
|
||||
]
|
||||
},
|
||||
{
|
||||
"color": "Text",
|
||||
"flags": "Text",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"bar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"background": "#ffa0a0a4",
|
||||
"flags": "ReplyButton",
|
||||
"link": {
|
||||
"type": "ReplyToMessage",
|
||||
"value": ""
|
||||
},
|
||||
"padding": 2,
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "CircularImageElement",
|
||||
"url": ""
|
||||
}
|
||||
],
|
||||
"flags": "Collapsed",
|
||||
"id": "",
|
||||
"localizedName": "",
|
||||
"loginName": "test",
|
||||
"messageText": "foo bar",
|
||||
"searchText": "test test: foo bar ",
|
||||
"serverReceivedTime": "2022-09-03T10:31:42Z",
|
||||
"timeoutUser": "",
|
||||
"usernameColor": "#ff000000"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user