feat: integrate creator hub douyin workflows
This commit is contained in:
@@ -78,3 +78,14 @@ func TestActionTargetAndBusinessStatusGates(t *testing.T) {
|
||||
t.Fatalf("normal logged-in account should be writable: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestValidMessageTypeKeepsNonTextMessagesExplicit(t *testing.T) {
|
||||
for _, messageType := range []string{MessageTypeText, MessageTypeImage, MessageTypeVoice, MessageTypeVideo, MessageTypeSticker, MessageTypeUnknown} {
|
||||
if !ValidMessageType(messageType) {
|
||||
t.Fatalf("message type %q should be accepted", messageType)
|
||||
}
|
||||
}
|
||||
if ValidMessageType("text-like") {
|
||||
t.Fatal("unknown message type must not be accepted")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user