Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(mcp-host): pin that a list whose numbers cannot all count it keeps them

marcoteb798afde247b6
diff --git a/mcp-host/src/workflow/__tests__/pptxInput.test.ts b/mcp-host/src/workflow/__tests__/pptxInput.test.ts
index d5415e7a6..6cb8b6718 100644
--- a/mcp-host/src/workflow/__tests__/pptxInput.test.ts
+++ b/mcp-host/src/workflow/__tests__/pptxInput.test.ts
@@ -61,6 +61,12 @@ describe('readStringList', () => {
'5. Initech',
])
expect(list('4. Fourth\n5. Fifth', ctx)).toEqual(['4. Fourth', '5. Fifth'])
+ // A 10 in a list of three counts nothing, so every number of the list stays.
+ expect(list('1. First\n2) Second\n10. Tenth', ctx)).toEqual([
+ '1. First',
+ '2) Second',
+ '10. Tenth',
+ ])
expect(list('1. First\n2. Second\n2024. A record year', ctx)).toEqual([
'1. First',
'2. Second',