mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:47:40 +00:00
chore: Fix types in tests 33/N.
This commit is contained in:
@@ -19,6 +19,8 @@ describe("agent delivery helpers", () => {
|
||||
it("builds a delivery plan from session delivery context", () => {
|
||||
const plan = resolveAgentDeliveryPlan({
|
||||
sessionEntry: {
|
||||
sessionId: "s1",
|
||||
updatedAt: 1,
|
||||
deliveryContext: { channel: "whatsapp", to: "+1555", accountId: "work" },
|
||||
},
|
||||
requestedChannel: "last",
|
||||
@@ -36,6 +38,8 @@ describe("agent delivery helpers", () => {
|
||||
it("resolves fallback targets when no explicit destination is provided", () => {
|
||||
const plan = resolveAgentDeliveryPlan({
|
||||
sessionEntry: {
|
||||
sessionId: "s2",
|
||||
updatedAt: 2,
|
||||
deliveryContext: { channel: "whatsapp" },
|
||||
},
|
||||
requestedChannel: "last",
|
||||
@@ -58,6 +62,8 @@ describe("agent delivery helpers", () => {
|
||||
it("skips outbound target resolution when explicit target validation is disabled", () => {
|
||||
const plan = resolveAgentDeliveryPlan({
|
||||
sessionEntry: {
|
||||
sessionId: "s3",
|
||||
updatedAt: 3,
|
||||
deliveryContext: { channel: "whatsapp", to: "+1555" },
|
||||
},
|
||||
requestedChannel: "last",
|
||||
|
||||
Reference in New Issue
Block a user