Skip to content

Commit 0f8157a

Browse files
committed
fix header_to_token test lint
1 parent 865259b commit 0f8157a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/pub_verif_token.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ test('header_to_token returns an Authorization header value', async () => {
105105
vi.stubGlobal(
106106
'fetch',
107107
vi.fn(async (input: RequestInfo | URL, init?: RequestInit) => {
108-
const url = input.toString();
108+
const url =
109+
input instanceof Request ? input.url : input instanceof URL ? input.href : input;
109110
if (url === `https://${tokChl.issuerName}/.well-known/private-token-issuer-directory`) {
110111
return new Response(
111112
JSON.stringify({

0 commit comments

Comments
 (0)