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(7619, "f2ab93523f2a4f94825d544a67607290", "hiloApi")
iamhujiebin's avatar
iamhujiebin committed
14 15
	t.Logf(token)
}