mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-21 03:27:32 +08:00
fix whatsapp
This commit is contained in:
@@ -53,6 +53,16 @@ func TestBridgeStatusURL(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestBridgeStatusURLWithNestedPath(t *testing.T) {
|
||||
got, err := BridgeStatusURL("ws://localhost:7788/whatsapp/ws")
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
if got != "http://localhost:7788/whatsapp/status" {
|
||||
t.Fatalf("got %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizeWhatsAppRecipientJID(t *testing.T) {
|
||||
tests := []struct {
|
||||
input string
|
||||
|
||||
Reference in New Issue
Block a user