test!: Remove testing utils for getting GitHub token

This is no longer needed under the new API.
This commit is contained in:
Thomas A. Christensen II 2024-02-02 20:10:51 -06:00
parent e8d313e9d2
commit 20ed9d58ea
Signed by: millironx
GPG key ID: B7044A3432851F64

View file

@ -1,12 +0,0 @@
export function getToken(first: boolean): string {
const token = process.env["GITHUB_TOKEN"] || ""
if (!token && first) {
/* eslint-disable-next-line no-console */
console.warn(
"Skipping GitHub tests. Set $GITHUB_TOKEN to run REST client and GraphQL client tests"
)
first = false
}
return token
}