mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-29 19:08:38 +00:00
fix: Failing tests due to import sorting.
This commit is contained in:
@@ -26,7 +26,7 @@ vi.mock("../../auto-reply/reply/reply-dispatcher.js", () => ({
|
||||
})),
|
||||
}));
|
||||
|
||||
import { processDiscordMessage } from "./message-handler.process.js";
|
||||
const { processDiscordMessage } = await import("./message-handler.process.js");
|
||||
|
||||
async function createBaseContext(overrides: Record<string, unknown> = {}) {
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-discord-"));
|
||||
@@ -102,6 +102,7 @@ describe("processDiscordMessage ack reactions", () => {
|
||||
const ctx = await createBaseContext({
|
||||
shouldRequireMention: false,
|
||||
effectiveWasMentioned: false,
|
||||
sender: { label: "user" },
|
||||
});
|
||||
|
||||
await processDiscordMessage(ctx as any);
|
||||
@@ -113,6 +114,7 @@ describe("processDiscordMessage ack reactions", () => {
|
||||
const ctx = await createBaseContext({
|
||||
shouldRequireMention: true,
|
||||
effectiveWasMentioned: true,
|
||||
sender: { label: "user" },
|
||||
});
|
||||
|
||||
await processDiscordMessage(ctx as any);
|
||||
|
||||
Reference in New Issue
Block a user