mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-28 10:22:32 +00:00
refactor: route outbound payload tests through extension test seams
This commit is contained in:
@@ -1 +1,2 @@
|
||||
export { buildFinalizedDiscordDirectInboundContext } from "./src/monitor/inbound-context.test-helpers.js";
|
||||
export { discordOutbound } from "./src/outbound-adapter.js";
|
||||
|
||||
1
extensions/whatsapp/test-api.ts
Normal file
1
extensions/whatsapp/test-api.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { whatsappOutbound } from "./src/outbound-adapter.js";
|
||||
1
extensions/zalo/test-api.ts
Normal file
1
extensions/zalo/test-api.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { sendMessageZalo } from "./src/send.js";
|
||||
2
extensions/zalouser/test-api.ts
Normal file
2
extensions/zalouser/test-api.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { sendMessageZalouser } from "./src/send.js";
|
||||
export { parseZalouserOutboundTarget } from "./src/session-route.js";
|
||||
@@ -1,9 +1,11 @@
|
||||
import { describe, vi } from "vitest";
|
||||
import { discordOutbound } from "../../../../extensions/discord/src/outbound-adapter.js";
|
||||
import { whatsappOutbound } from "../../../../extensions/whatsapp/src/outbound-adapter.js";
|
||||
import { sendMessageZalo } from "../../../../extensions/zalo/src/send.js";
|
||||
import { sendMessageZalouser } from "../../../../extensions/zalouser/src/send.js";
|
||||
import { parseZalouserOutboundTarget } from "../../../../extensions/zalouser/src/session-route.js";
|
||||
import { discordOutbound } from "../../../../extensions/discord/test-api.js";
|
||||
import { whatsappOutbound } from "../../../../extensions/whatsapp/test-api.js";
|
||||
import { sendMessageZalo } from "../../../../extensions/zalo/test-api.js";
|
||||
import {
|
||||
sendMessageZalouser,
|
||||
parseZalouserOutboundTarget,
|
||||
} from "../../../../extensions/zalouser/test-api.js";
|
||||
import {
|
||||
chunkTextForOutbound as chunkZaloTextForOutbound,
|
||||
sendPayloadWithChunkedTextAndMedia as sendZaloPayloadWithChunkedTextAndMedia,
|
||||
|
||||
Reference in New Issue
Block a user