Skip to content

Commit 4649e15

Browse files
committed
Fix old test
1 parent 3d57420 commit 4649e15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/start-proxy.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ test("getCredentials returns all credentials when no language specified", async
265265
});
266266

267267
test("getCredentials throws an error when non-printable characters are used", async (t) => {
268-
const invalidCredentials = [
268+
const invalidCredentials: startProxyExports.RawCredential[] = [
269269
{ type: "nuget_feed", host: "1nuget.pkg.github.com", token: "abc\u0000" }, // Non-printable character in token
270270
{ type: "nuget_feed", host: "2nuget.pkg.github.com\u0001" }, // Non-printable character in host
271271
{
@@ -276,8 +276,8 @@ test("getCredentials throws an error when non-printable characters are used", as
276276
{
277277
type: "nuget_feed",
278278
host: "4nuget.pkg.github.com",
279-
password: "ghi\x00",
280-
}, // Non-printable character in password
279+
token: "ghi\x00",
280+
}, // Non-printable character in token
281281
];
282282

283283
for (const invalidCredential of invalidCredentials) {

0 commit comments

Comments
 (0)