@@ -1141,16 +1141,38 @@ func TestSendModeratorWarnMessage(t *testing.T) {
1141
1141
"" ,
1142
1142
},
1143
1143
{
1144
- http .StatusUnauthorized ,
1144
+ http .StatusOK ,
1145
1145
& Options {ClientID : "my-client-id" , UserAccessToken : "invalid-access-token" },
1146
1146
& SendModeratorWarnChatMessageParams {
1147
1147
BroadcasterID : "1234" ,
1148
1148
ModeratorID : "5678" ,
1149
1149
Reason : "Test warning message" ,
1150
1150
},
1151
- `{"error":"Unauthorized","status":401,"message":"Invalid OAuth token"}` ,
1151
+ "" ,
1152
1152
"error: user id must be specified" ,
1153
1153
},
1154
+ {
1155
+ http .StatusOK ,
1156
+ & Options {ClientID : "my-client-id" , UserAccessToken : "invalid-access-token" },
1157
+ & SendModeratorWarnChatMessageParams {
1158
+ UserID : "1234" ,
1159
+ ModeratorID : "5678" ,
1160
+ Reason : "Test warning message" ,
1161
+ },
1162
+ "" ,
1163
+ "error: broadcaster id must be specified" ,
1164
+ },
1165
+ {
1166
+ http .StatusOK ,
1167
+ & Options {ClientID : "my-client-id" , UserAccessToken : "invalid-access-token" },
1168
+ & SendModeratorWarnChatMessageParams {
1169
+ UserID : "1234" ,
1170
+ BroadcasterID : "12345" ,
1171
+ Reason : "Test warning message" ,
1172
+ },
1173
+ "" ,
1174
+ "error: moderator id must be specified" ,
1175
+ },
1154
1176
{
1155
1177
http .StatusUnauthorized ,
1156
1178
& Options {ClientID : "my-client-id" , UserAccessToken : "invalid-access-token" },
0 commit comments