Skip to content

Commit 8e8eb41

Browse files
committed
prettier
1 parent 779621e commit 8e8eb41

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

client/src/components/__tests__/AuthDebugger.test.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,18 @@ import {
5959
} from "@modelcontextprotocol/sdk/client/auth.js";
6060

6161
// Type the mocked functions properly
62-
const mockDiscoverOAuthMetadata = discoverOAuthMetadata as jest.MockedFunction<typeof discoverOAuthMetadata>;
63-
const mockRegisterClient = registerClient as jest.MockedFunction<typeof registerClient>;
64-
const mockStartAuthorization = startAuthorization as jest.MockedFunction<typeof startAuthorization>;
65-
const mockExchangeAuthorization = exchangeAuthorization as jest.MockedFunction<typeof exchangeAuthorization>;
62+
const mockDiscoverOAuthMetadata = discoverOAuthMetadata as jest.MockedFunction<
63+
typeof discoverOAuthMetadata
64+
>;
65+
const mockRegisterClient = registerClient as jest.MockedFunction<
66+
typeof registerClient
67+
>;
68+
const mockStartAuthorization = startAuthorization as jest.MockedFunction<
69+
typeof startAuthorization
70+
>;
71+
const mockExchangeAuthorization = exchangeAuthorization as jest.MockedFunction<
72+
typeof exchangeAuthorization
73+
>;
6674

6775
// Mock Session Storage
6876
const sessionStorageMock = {
@@ -107,7 +115,7 @@ describe("AuthDebugger", () => {
107115
beforeEach(() => {
108116
jest.clearAllMocks();
109117
sessionStorageMock.getItem.mockReturnValue(null);
110-
118+
111119
// Set up mock implementations
112120
mockDiscoverOAuthMetadata.mockResolvedValue(mockOAuthMetadata);
113121
mockRegisterClient.mockResolvedValue(mockOAuthClientInfo);
@@ -296,7 +304,9 @@ describe("AuthDebugger", () => {
296304
fireEvent.click(screen.getByText("Continue"));
297305
});
298306

299-
expect(mockDiscoverOAuthMetadata).toHaveBeenCalledWith("https://example.com");
307+
expect(mockDiscoverOAuthMetadata).toHaveBeenCalledWith(
308+
"https://example.com",
309+
);
300310
});
301311
});
302312
});

0 commit comments

Comments
 (0)