mirror of
https://github.com/MedzikUser/go-github-selfupdate.git
synced 2024-08-15 03:25:29 +00:00
15 lines
260 B
Go
15 lines
260 B
Go
package selfupdate
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestGitHubTokenEnv(t *testing.T) {
|
|
token := os.Getenv("GITHUB_TOKEN")
|
|
if token == "" {
|
|
t.Skip("because $GITHUB_TOKEN is not set")
|
|
}
|
|
_ = NewUpdater(Config{})
|
|
_ = NewUpdater(Config{APIToken: token})
|
|
}
|