mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 04:31:23 +00:00
test(core): use lightweight clears in stable mock setup
This commit is contained in:
@@ -134,7 +134,7 @@ describe("extractAssistantText", () => {
|
||||
|
||||
describe("resolveAnnounceTarget", () => {
|
||||
beforeEach(async () => {
|
||||
callGatewayMock.mockReset();
|
||||
callGatewayMock.mockClear();
|
||||
await installRegistry();
|
||||
});
|
||||
|
||||
@@ -179,7 +179,7 @@ describe("resolveAnnounceTarget", () => {
|
||||
|
||||
describe("sessions_list gating", () => {
|
||||
beforeEach(() => {
|
||||
callGatewayMock.mockReset();
|
||||
callGatewayMock.mockClear();
|
||||
callGatewayMock.mockResolvedValue({
|
||||
path: "/tmp/sessions.json",
|
||||
sessions: [
|
||||
@@ -201,7 +201,7 @@ describe("sessions_list gating", () => {
|
||||
|
||||
describe("sessions_send gating", () => {
|
||||
beforeEach(() => {
|
||||
callGatewayMock.mockReset();
|
||||
callGatewayMock.mockClear();
|
||||
});
|
||||
|
||||
it("blocks cross-agent sends when tools.agentToAgent.enabled is false", async () => {
|
||||
|
||||
Reference in New Issue
Block a user