Commit 1254d63a authored by iamhujiebin's avatar iamhujiebin

Update utils_test.go

parent 36110aca
package utils package utils
import ( import (
"github.com/hilo-common/utils/jwt"
"testing" "testing"
"time" "time"
) )
...@@ -8,3 +9,8 @@ import ( ...@@ -8,3 +9,8 @@ import (
func TestTestCommon(t *testing.T) { func TestTestCommon(t *testing.T) {
t.Logf(time.Date(2022, time.November, 1, 0, 0, 0, 0, time.Local).String()) t.Logf(time.Date(2022, time.November, 1, 0, 0, 0, 0, time.Local).String())
} }
func TestJwt(t *testing.T) {
token, _ := jwt.GenerateToken(4522, "bd572e747832490189f1604742a09225", "hiloApi")
t.Logf(token)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment