mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Fix old test
This commit is contained in:
@@ -265,7 +265,7 @@ test("getCredentials returns all credentials when no language specified", async
|
||||
});
|
||||
|
||||
test("getCredentials throws an error when non-printable characters are used", async (t) => {
|
||||
const invalidCredentials = [
|
||||
const invalidCredentials: startProxyExports.RawCredential[] = [
|
||||
{ type: "nuget_feed", host: "1nuget.pkg.github.com", token: "abc\u0000" }, // Non-printable character in token
|
||||
{ type: "nuget_feed", host: "2nuget.pkg.github.com\u0001" }, // Non-printable character in host
|
||||
{
|
||||
@@ -276,8 +276,8 @@ test("getCredentials throws an error when non-printable characters are used", as
|
||||
{
|
||||
type: "nuget_feed",
|
||||
host: "4nuget.pkg.github.com",
|
||||
password: "ghi\x00",
|
||||
}, // Non-printable character in password
|
||||
token: "ghi\x00",
|
||||
}, // Non-printable character in token
|
||||
];
|
||||
|
||||
for (const invalidCredential of invalidCredentials) {
|
||||
|
||||
Reference in New Issue
Block a user