Add undefined fields for logo_uri and tos_uri in OAuth metadata tests

This commit is contained in:
Denis Palnitsky 2026-03-30 20:16:16 +02:00 committed by Danny Avila
parent 016e96849e
commit 7e0fffca25

View file

@ -1460,6 +1460,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
'user-123',
{},
undefined,
undefined,
mockFindToken,
);
@ -1502,6 +1503,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
client_id: 'new-client-id',
client_secret: 'new-client-secret',
redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'],
logo_uri: undefined,
tos_uri: undefined,
});
mockStartAuthorization.mockResolvedValueOnce({
@ -1515,6 +1518,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
'user-123',
{},
undefined,
undefined,
mockFindToken,
);
@ -1544,6 +1548,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
client_id: 'new-client-id',
client_secret: 'new-client-secret',
redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'],
logo_uri: undefined,
tos_uri: undefined,
});
mockStartAuthorization.mockResolvedValueOnce({
@ -1591,6 +1597,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
client_id: 'new-client-id',
client_secret: 'new-client-secret',
redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'],
logo_uri: undefined,
tos_uri: undefined,
});
mockStartAuthorization.mockResolvedValueOnce({
@ -1604,6 +1612,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
'user-123',
{},
undefined,
undefined,
mockFindToken,
);
@ -1643,6 +1652,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
client_id: 'new-client-id',
client_secret: 'new-client-secret',
redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'],
logo_uri: undefined,
tos_uri: undefined,
});
mockStartAuthorization.mockResolvedValueOnce({
@ -1656,6 +1667,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
'user-123',
{},
undefined,
undefined,
mockFindToken,
);