mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:00:43 +00:00
test(cron): use CronDeliveryMode in policy helpers
This commit is contained in:
@@ -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;
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user