Browse Source

Refactoring

pull/7935/head
Thomas Kaul 6 days ago
parent
commit
cc3d3208e0
  1. 8
      apps/api/src/app/endpoints/mcp/mcp.controller.spec.ts

8
apps/api/src/app/endpoints/mcp/mcp.controller.spec.ts

@ -83,10 +83,12 @@ describe('GhostfolioMcpController', () => {
expect(toolMethodNames.length).toBeGreaterThan(0); expect(toolMethodNames.length).toBeGreaterThan(0);
for (const methodName of toolMethodNames) { for (const toolMethodName of toolMethodNames) {
expect( expect(
getMetadataOfMethod<string[]>(MCP_SCOPES_METADATA_KEY, methodName) getMetadataOfMethod<string[]>(MCP_SCOPES_METADATA_KEY, toolMethodName)
).toEqual(getMetadataOfMethod<Scope[]>(REQUIRES_SCOPE_KEY, methodName)); ).toEqual(
getMetadataOfMethod<Scope[]>(REQUIRES_SCOPE_KEY, toolMethodName)
);
} }
}); });

Loading…
Cancel
Save