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

import (
iamhujiebin's avatar
iamhujiebin committed
4
	"github.com/hilo-common/utils/jwt"
hujiebin's avatar
hujiebin committed
5 6 7 8 9 10 11
	"testing"
	"time"
)

func TestTestCommon(t *testing.T) {
	t.Logf(time.Date(2022, time.November, 1, 0, 0, 0, 0, time.Local).String())
}
iamhujiebin's avatar
iamhujiebin committed
12 13

func TestJwt(t *testing.T) {
hujiebin's avatar
hujiebin committed
14
	token, _ := jwt.GenerateToken(2781, "6373ff5c318c4057886a669b5c9b5301", "hiloApi")
iamhujiebin's avatar
iamhujiebin committed
15 16
	t.Logf(token)
}