From 916e08469dc4cd04c8e4ac7dddb496f7fd51619c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 8 Nov 2025 01:07:57 +0000 Subject: [PATCH] test: satisfy lint for list helpers --- tests/list-detail-helpers.test.ts | 2 +- tests/list-output.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/list-detail-helpers.test.ts b/tests/list-detail-helpers.test.ts index 25650bd..e352d9b 100644 --- a/tests/list-detail-helpers.test.ts +++ b/tests/list-detail-helpers.test.ts @@ -118,7 +118,7 @@ describe('formatCallExpressionExample', () => { [baseOption({ property: 'request', required: true })], { callSelector: 'https://mcp.sentry.dev/mcp?agent=1', wrapExpression: true } ); - expect(example).toBe("mcporter call 'https://mcp.sentry.dev/mcp?agent=1.use_sentry(request: \"value\")'"); + expect(example).toBe('mcporter call \'https://mcp.sentry.dev/mcp?agent=1.use_sentry(request: "value")\''); }); }); diff --git a/tests/list-output.test.ts b/tests/list-output.test.ts index e65150f..51339ca 100644 --- a/tests/list-output.test.ts +++ b/tests/list-output.test.ts @@ -48,7 +48,7 @@ describe('list output helpers', () => { outputSchema: { type: 'number' }, }; const metadata = buildToolMetadata(tool); - const detail = printToolDetail(definition as any, metadata, true, true); + const detail = printToolDetail(definition, metadata, true, true); expect(detail.optionalOmitted).toBe(true); expect(detail.examples.length).toBeGreaterThan(0); logSpy.mockRestore(); @@ -75,7 +75,7 @@ describe('list output helpers', () => { outputSchema: { type: 'object' }, }; const metadata = buildToolMetadata(tool); - const detail = printToolDetail(adhocDefinition as any, metadata, false, true); + const detail = printToolDetail(adhocDefinition, metadata, false, true); expect(detail.examples[0]).toContain("'https://mcp.sentry.dev/mcp?agent=1.use_sentry("); logSpy.mockRestore(); });