test(cron): use CronDeliveryMode in policy helpers

This commit is contained in:
Ayaan Zaidi
2026-04-18 14:36:16 +05:30
parent 13a0d7a9e0
commit eaaab098fb

View File

@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import type { CronDeliveryMode } from "../types.js";
import {
clearFastTestEnv,
dispatchCronDeliveryMock,
@@ -36,7 +37,7 @@ describe("runCronIsolatedAgentTurn message tool policy", () => {
async function expectMessageToolDisabledForPlan(plan: {
requested: boolean;
mode: "none" | "announce";
mode: CronDeliveryMode;
channel?: string;
to?: string;
}) {
@@ -49,7 +50,7 @@ describe("runCronIsolatedAgentTurn message tool policy", () => {
async function expectMessageToolEnabledForPlan(plan: {
requested: boolean;
mode: "none" | "announce";
mode: CronDeliveryMode;
channel?: string;
to?: string;
}) {