mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 08:58:37 +00:00
test(cli): use lightweight clears for devices runtime/detail mocks
This commit is contained in:
@@ -289,7 +289,7 @@ describe("devices cli local fallback", () => {
|
|||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
callGateway.mockReset();
|
callGateway.mockReset();
|
||||||
buildGatewayConnectionDetails.mockReset();
|
buildGatewayConnectionDetails.mockClear();
|
||||||
buildGatewayConnectionDetails.mockReturnValue({
|
buildGatewayConnectionDetails.mockReturnValue({
|
||||||
url: "ws://127.0.0.1:18789",
|
url: "ws://127.0.0.1:18789",
|
||||||
urlSource: "local loopback",
|
urlSource: "local loopback",
|
||||||
@@ -299,7 +299,7 @@ afterEach(() => {
|
|||||||
approveDevicePairing.mockReset();
|
approveDevicePairing.mockReset();
|
||||||
summarizeDeviceTokens.mockReset();
|
summarizeDeviceTokens.mockReset();
|
||||||
withProgress.mockClear();
|
withProgress.mockClear();
|
||||||
runtime.log.mockReset();
|
runtime.log.mockClear();
|
||||||
runtime.error.mockReset();
|
runtime.error.mockClear();
|
||||||
runtime.exit.mockReset();
|
runtime.exit.mockClear();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user