Test: new changes in pkg request, serializer, task, xml, router

This commit is contained in:
HFO4
2022-03-31 20:17:01 +08:00
parent d117080991
commit ec776ac837
9 changed files with 26 additions and 285 deletions

View File

@@ -1,6 +1,7 @@
package routers
import (
"github.com/cloudreve/Cloudreve/v3/pkg/conf"
"net/http"
"net/http/httptest"
"testing"
@@ -19,7 +20,7 @@ func TestPing(t *testing.T) {
router.ServeHTTP(w, req)
assert.Equal(t, 200, w.Code)
asserts.Contains(w.Body.String(), "Pong")
asserts.Contains(w.Body.String(), conf.BackendVersion)
}
func TestCaptcha(t *testing.T) {