diff --git a/packages/api/tests/rich-text-detection.test.ts b/packages/api/tests/rich-text-detection.test.ts index 52b10acb7d6..927c535b6f2 100644 --- a/packages/api/tests/rich-text-detection.test.ts +++ b/packages/api/tests/rich-text-detection.test.ts @@ -295,10 +295,10 @@ describe('detectFacets', () => { const rt = new RichText({ text: input }) await rt.detectFacets(agent) - let detectedTags: string[] = [] - let detectedIndices: { byteStart: number; byteEnd: number }[] = [] + const detectedTags: string[] = [] + const detectedIndices: { byteStart: number; byteEnd: number }[] = [] - for (const { facet, ...rest } of rt.segments()) { + for (const { facet, ..._rest } of rt.segments()) { if (!facet) continue for (const feature of facet.features) { if (isTag(feature)) {