新增合作与反馈入口配置
This commit is contained in:
@@ -40,3 +40,14 @@ func TestAWRecycleSceneUsesPublicFileURL(t *testing.T) {
|
||||
t.Fatalf("aw-recycle file url = %q, want public file endpoint", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCooperationFeedbackSceneUsesPublicFileURL(t *testing.T) {
|
||||
if got := normalizeScene("cooperation-feedback"); got != "cooperation-feedback" {
|
||||
t.Fatalf("normalize cooperation-feedback scene = %q", got)
|
||||
}
|
||||
key := "cooperation-feedback/2026/07/19/example.webp"
|
||||
got := fileURLForScene("cooperation-feedback", key)
|
||||
if !strings.HasPrefix(got, "/api/public/files/object?") {
|
||||
t.Fatalf("cooperation-feedback file url = %q, want public file endpoint", got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user