utils_test.go 265 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3
package utils

import (
hujiebin's avatar
hujiebin committed
4
	"git.hilo.cn/hilo-common/script/utils/jwt"
hujiebin's avatar
hujiebin committed
5 6 7 8
	"testing"
)

func TestTestCommon(t *testing.T) {
hujiebin's avatar
hujiebin committed
9
	TestCommon()
hujiebin's avatar
hujiebin committed
10
}
iamhujiebin's avatar
iamhujiebin committed
11 12

func TestJwt(t *testing.T) {
hujiebin's avatar
hujiebin committed
13
	token, _ := jwt.GenerateToken(7630, "4be85abee40f447a964a5bf2db7accba", "hiloApi")
iamhujiebin's avatar
iamhujiebin committed
14 15
	t.Logf(token)
}