mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Test: new changes in pkg request, serializer, task, xml, router
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user