Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(grok-llm-proxy): require the visual body limit error to name its variable
Alfredo Lopez554d1046f52f
diff --git a/grok-llm-proxy/test/server.security.test.ts b/grok-llm-proxy/test/server.security.test.tsindex 237352724..f4bf7e5b3 100644--- a/grok-llm-proxy/test/server.security.test.ts+++ b/grok-llm-proxy/test/server.security.test.ts@@ -762,9 +762,11 @@ describe('grok-llm-proxy startup config', () => {...base,GROK_LLM_PROXY_MAX_VISUAL_BODY_BYTES: String(LIMITS.maxVisualRequestBodyBytes - 1),})- ).toThrow('Visual Grok requests require the full shared envelope byte budget')+ ).toThrow(+ `GROK_LLM_PROXY_MAX_VISUAL_BODY_BYTES must be at least ${LIMITS.maxVisualRequestBodyBytes}, the contract maxVisualRequestBodyBytes`+ )expect(() => loadConfig({ ...base, GROK_LLM_PROXY_MAX_VISUAL_BODY_BYTES: '1024' })).toThrow(- /shared envelope byte budget/+ /^GROK_LLM_PROXY_MAX_VISUAL_BODY_BYTES must be at least 36700160,/)// Witness: the ceiling itself and any larger value load.expect(