mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
Complete Unit Test for package utils
This commit is contained in:
14
backend/utils/user_test.go
Normal file
14
backend/utils/user_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestEncryptPassword(t *testing.T) {
|
||||
var passwd = "test"
|
||||
Convey("Test EncryptPassword", t, func() {
|
||||
res := EncryptPassword(passwd)
|
||||
t.Log(res)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user