Test: get source URL of files

This commit is contained in:
HFO4
2019-12-11 12:24:09 +08:00
parent 9f26c0c8ab
commit d0bb123e03
18 changed files with 363 additions and 28 deletions

View File

@@ -28,7 +28,7 @@ func TestCaptcha(t *testing.T) {
req, _ := http.NewRequest(
"GET",
"/api/v3/captcha",
"/api/v3/site/captcha",
nil,
)
@@ -239,7 +239,7 @@ func TestSiteConfigRoute(t *testing.T) {
)
router.ServeHTTP(w, req)
asserts.Equal(200, w.Code)
asserts.Contains(w.Body.String(), "\"title\":\"\"")
asserts.Contains(w.Body.String(), "\"title\"")
model.DB.Model(&model.Setting{
Model: gorm.Model{