mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 17:39:15 +00:00
Move makeTestToken to testing-utils
This commit is contained in:
@@ -412,3 +412,9 @@ export function createTestConfig(overrides: Partial<Config>): Config {
|
||||
overrides,
|
||||
);
|
||||
}
|
||||
|
||||
export function makeTestToken(length: number = 36) {
|
||||
const chars =
|
||||
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
return chars.repeat(Math.ceil(length / chars.length)).slice(0, length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user