Use .match in isAuthToken and add repeated call to test

This commit is contained in:
Michael B. Gale
2026-01-27 11:31:12 +00:00
parent 0a0c3a2e09
commit c656a11252
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -31,6 +31,7 @@ test("isAuthToken", (t) => {
// Token types for strings that are tokens.
t.is(isAuthToken(`ghp_${makeTestToken()}`), TokenType.PersonalAccessClassic);
t.is(isAuthToken(`ghp_${makeTestToken()}`), TokenType.PersonalAccessClassic);
t.is(
isAuthToken(`ghs_${makeTestToken(255)}`),
TokenType.AppInstallationAccess,