chore: Fix types in tests 33/N.

This commit is contained in:
cpojer
2026-02-17 15:45:36 +09:00
parent f44b58fd58
commit 49bd9f75f4
21 changed files with 148 additions and 42 deletions

View File

@@ -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",