bindbox-game/internal/pkg/miniprogram/access_token_test.go

17 lines
277 B
Go
Executable File

package miniprogram
import (
"testing"
)
func TestGetAccessToken(t *testing.T) {
res := new(AccessTokenResponse)
err := GetAccessToken("", "", res)
if err != nil {
t.Error(err)
}
t.Logf("access_token: %s", res.AccessToken)
t.Logf("expires_in: %d", res.ExpiresIn)
}