docs(web/webtest)

This commit is contained in:
Geno 2021-09-11 11:15:24 +02:00
parent 4758997040
commit 2fcb2d7cb4
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ type Option struct {
ModuleLoader web.ModuleRegisterFunc
}
// TestServer - to run it without listen an server
type TestServer struct {
DB *database.Database
Mails chan *mailer.TestingMail
@ -113,7 +114,7 @@ func NewWithOption(option Option) (*TestServer, error) {
}, nil
}
// DatabaseForget, to run a test without a database
// DatabaseForget to run a test without a database
func (s *TestServer) DatabaseForget() {
s.WS.DB = nil
s.DB = nil