test: build delete stub URL from shared base path constant

This commit is contained in:
leave330
2026-07-08 17:16:02 +08:00
parent 59ccffb09a
commit 42dc50f5fb

View File

@@ -16,7 +16,7 @@ import (
func deleteOKStub(id string) *httpmock.Stub {
return &httpmock.Stub{
Method: "DELETE",
URL: "/open-apis/application/v7/app_slash_commands/" + id,
URL: slashCommandBasePath + "/" + id,
Body: map[string]interface{}{"code": 0, "msg": "success", "data": map[string]interface{}{}},
}
}