openpondai/agents/news-intelligence-roundup
OpenTool app
typescript
import { describe, expect, test } from "bun:test";
import { resolveRuntimeConfig } from "./config";
describe("news-intelligence-roundup config", () => {
test("defaults to the cheap 24 hour top-events mode", () => {
const config = resolveRuntimeConfig();
expect(config.mode).toBe("top_events");
expect(config.query).toBeNull();
expect(config.windows).toEqual([24]);
});
test("caps requested windows at the 72 hour gateway budget", () => {
const config = resolveRuntimeConfig({
windows: [1, 24, 24 * 30],
});
expect(config.windows).toEqual([1, 24, 72]);
});
});