mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 11:47:41 +00:00
test: dedupe and optimize test suites
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { logVerbose } from "../../globals.js";
|
||||
import { sleep } from "../../utils.js";
|
||||
import { loadWebMedia } from "../media.js";
|
||||
import { deliverWebReply } from "./deliver-reply.js";
|
||||
import type { WebInboundMsg } from "./types.js";
|
||||
|
||||
@@ -23,10 +26,6 @@ vi.mock("../../utils.js", async (importOriginal) => {
|
||||
};
|
||||
});
|
||||
|
||||
const { loadWebMedia } = await import("../media.js");
|
||||
const { sleep } = await import("../../utils.js");
|
||||
const { logVerbose } = await import("../../globals.js");
|
||||
|
||||
function makeMsg(): WebInboundMsg {
|
||||
return {
|
||||
from: "+10000000000",
|
||||
|
||||
Reference in New Issue
Block a user