mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:40:49 +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 { afterEach, beforeEach, describe, expect, it } from "vitest";
|
||||||
|
import type { CronDeliveryMode } from "../types.js";
|
||||||
import {
|
import {
|
||||||
clearFastTestEnv,
|
clearFastTestEnv,
|
||||||
dispatchCronDeliveryMock,
|
dispatchCronDeliveryMock,
|
||||||
@@ -36,7 +37,7 @@ describe("runCronIsolatedAgentTurn message tool policy", () => {
|
|||||||
|
|
||||||
async function expectMessageToolDisabledForPlan(plan: {
|
async function expectMessageToolDisabledForPlan(plan: {
|
||||||
requested: boolean;
|
requested: boolean;
|
||||||
mode: "none" | "announce";
|
mode: CronDeliveryMode;
|
||||||
channel?: string;
|
channel?: string;
|
||||||
to?: string;
|
to?: string;
|
||||||
}) {
|
}) {
|
||||||
@@ -49,7 +50,7 @@ describe("runCronIsolatedAgentTurn message tool policy", () => {
|
|||||||
|
|
||||||
async function expectMessageToolEnabledForPlan(plan: {
|
async function expectMessageToolEnabledForPlan(plan: {
|
||||||
requested: boolean;
|
requested: boolean;
|
||||||
mode: "none" | "announce";
|
mode: CronDeliveryMode;
|
||||||
channel?: string;
|
channel?: string;
|
||||||
to?: string;
|
to?: string;
|
||||||
}) {
|
}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user