diff options
| author | N. Taylor Mullen <[email protected]> | 2025-06-04 00:24:25 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-04 07:24:25 +0000 |
| commit | d179b3aae41b466a5e75ac4392d5a5ad88ffffb0 (patch) | |
| tree | 1e72ecd6126c13b9b14801dcda64e7c1b1cb9911 /packages/core/src/tools/mcp-tool.test.ts | |
| parent | 4b2af10b0478fc8f92fe848019a0bc2d8943ed88 (diff) | |
refactor(core): Centralize tool response formatting (#743)
Diffstat (limited to 'packages/core/src/tools/mcp-tool.test.ts')
| -rw-r--r-- | packages/core/src/tools/mcp-tool.test.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/core/src/tools/mcp-tool.test.ts b/packages/core/src/tools/mcp-tool.test.ts index 86968b3d..fc6ce6be 100644 --- a/packages/core/src/tools/mcp-tool.test.ts +++ b/packages/core/src/tools/mcp-tool.test.ts @@ -138,12 +138,7 @@ describe('DiscoveredMCPTool', () => { const stringifiedResponseContent = JSON.stringify( mockToolSuccessResultObject, ); - // getStringifiedResultForDisplay joins text parts, then wraps the array of processed parts in JSON - const expectedDisplayOutput = - '```json\n' + - JSON.stringify([stringifiedResponseContent], null, 2) + - '\n```'; - expect(toolResult.returnDisplay).toBe(expectedDisplayOutput); + expect(toolResult.returnDisplay).toBe(stringifiedResponseContent); }); it('should handle empty result from getStringifiedResultForDisplay', async () => { |
