refactor(tests): update summarizationConfig tests to reflect changes in enabled property

Modified tests to check for the new `summarizationEnabled` property instead of the deprecated `enabled` field in the summarization configuration. This change ensures that the tests accurately validate the current configuration structure and behavior of the agents.
This commit is contained in:
Danny Avila 2026-03-11 21:15:06 -04:00
parent b8bdb0d0fc
commit eccd248689
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -230,7 +230,9 @@ describe('summarizationConfig field passthrough', () => {
});
const config = agents[0].summarizationConfig as Record<string, unknown>;
expect(config).toBeDefined();
expect(config.enabled).toBe(true);
// `enabled` is not forwarded to the agent-level config — it is resolved
// into the separate `summarizationEnabled` boolean on the agent input.
expect(agents[0].summarizationEnabled).toBe(true);
expect(config.trigger).toEqual({ type: 'token_count', value: 8000 });
expect(config.provider).toBe('anthropic');
expect(config.model).toBe('claude-3-haiku');
@ -247,7 +249,8 @@ describe('summarizationConfig field passthrough', () => {
});
const config = agents[0].summarizationConfig as Record<string, unknown>;
expect(config).toBeDefined();
expect(config.enabled).toBe(true);
// `enabled` is resolved into `summarizationEnabled`, not forwarded on config
expect(agents[0].summarizationEnabled).toBe(true);
expect(config.provider).toBe('openAI');
expect(config.model).toBe('gpt-4o');
});