mirror of
https://github.com/github/codeql-action.git
synced 2026-05-17 08:40:16 +00:00
Use .match in isAuthToken and add repeated call to test
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user