Skip to content

Commit 37566c6

Browse files
Fixing lint issues
1 parent c44eedc commit 37566c6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/client/auth.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ describe('OAuth Authorization', () => {
23682368
scope: providedScope
23692369
});
23702370

2371-
const redirectCall = (mockProvider.redirectToAuthorization as vi.Mock).mock.calls[0];
2371+
const redirectCall = (mockProvider.redirectToAuthorization as Mock).mock.calls[0];
23722372
const authUrl: URL = redirectCall[0];
23732373
expect(authUrl.searchParams.get('scope')).toBe(providedScope);
23742374
});
@@ -2396,7 +2396,7 @@ describe('OAuth Authorization', () => {
23962396
serverUrl: 'https://api.example.com/mcp-server'
23972397
});
23982398

2399-
const redirectCall = (mockProvider.redirectToAuthorization as vi.Mock).mock.calls[0];
2399+
const redirectCall = (mockProvider.redirectToAuthorization as Mock).mock.calls[0];
24002400
const authUrl: URL = redirectCall[0];
24012401
expect(authUrl.searchParams.get('scope')).toBe(resourceScope);
24022402
});
@@ -2424,7 +2424,7 @@ describe('OAuth Authorization', () => {
24242424
serverUrl: 'https://api.example.com/mcp-server'
24252425
});
24262426

2427-
const redirectCall = (mockProvider.redirectToAuthorization as vi.Mock).mock.calls[0];
2427+
const redirectCall = (mockProvider.redirectToAuthorization as Mock).mock.calls[0];
24282428
const authUrl: URL = redirectCall[0];
24292429
expect(authUrl.searchParams.get('scope')).toBe(clientMetadataScope);
24302430
});

src/client/streamableHttp.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ describe('StreamableHTTPClientTransport', () => {
601601
id: 'test-id'
602602
};
603603

604-
const fetchMock = global.fetch as vi.Mock;
604+
const fetchMock = global.fetch as Mock;
605605
fetchMock
606606
// First call: returns 403 with insufficient_scope
607607
.mockResolvedValueOnce({
@@ -652,7 +652,7 @@ describe('StreamableHTTPClientTransport', () => {
652652
};
653653

654654
// Mock fetch calls to always return 403 with insufficient_scope
655-
const fetchMock = global.fetch as vi.Mock;
655+
const fetchMock = global.fetch as Mock;
656656
fetchMock.mockResolvedValue({
657657
ok: false,
658658
status: 403,

0 commit comments

Comments
 (0)