Fix old test

This commit is contained in:
Michael B. Gale
2026-03-10 01:47:09 +00:00
parent 3d574205fc
commit 4649e158bc

View File

@@ -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) {