mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 18:31:26 +00:00
test(cli): use lightweight clears in message helper and gateway chat setup
This commit is contained in:
@@ -36,10 +36,10 @@ describe("resolveGatewayConnection", () => {
|
||||
|
||||
beforeEach(() => {
|
||||
envSnapshot = captureEnv(["OPENCLAW_GATEWAY_TOKEN", "OPENCLAW_GATEWAY_PASSWORD"]);
|
||||
loadConfig.mockReset();
|
||||
resolveGatewayPort.mockReset();
|
||||
pickPrimaryTailnetIPv4.mockReset();
|
||||
pickPrimaryLanIPv4.mockReset();
|
||||
loadConfig.mockClear();
|
||||
resolveGatewayPort.mockClear();
|
||||
pickPrimaryTailnetIPv4.mockClear();
|
||||
pickPrimaryLanIPv4.mockClear();
|
||||
resolveGatewayPort.mockReturnValue(18789);
|
||||
pickPrimaryTailnetIPv4.mockReturnValue(undefined);
|
||||
pickPrimaryLanIPv4.mockReturnValue(undefined);
|
||||
|
||||
Reference in New Issue
Block a user