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