feat: integrate creator hub douyin workflows

This commit is contained in:
2026-09-14 19:22:07 +08:00
parent 025fe62c37
commit 44a28954cf
42 changed files with 2850 additions and 880 deletions
+11
View File
@@ -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")
}
}