Test: get source URL of files

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

No files matched your search

+2 -2
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{