mirror of https://github.com/openclaw/openclaw.git
test(cli): use lightweight clears for devices runtime/detail mocks
This commit is contained in:
parent
67aef31187
commit
142e8cb383
|
|
@ -289,7 +289,7 @@ describe("devices cli local fallback", () => {
|
|||
|
||||
afterEach(() => {
|
||||
callGateway.mockReset();
|
||||
buildGatewayConnectionDetails.mockReset();
|
||||
buildGatewayConnectionDetails.mockClear();
|
||||
buildGatewayConnectionDetails.mockReturnValue({
|
||||
url: "ws://127.0.0.1:18789",
|
||||
urlSource: "local loopback",
|
||||
|
|
@ -299,7 +299,7 @@ afterEach(() => {
|
|||
approveDevicePairing.mockReset();
|
||||
summarizeDeviceTokens.mockReset();
|
||||
withProgress.mockClear();
|
||||
runtime.log.mockReset();
|
||||
runtime.error.mockReset();
|
||||
runtime.exit.mockReset();
|
||||
runtime.log.mockClear();
|
||||
runtime.error.mockClear();
|
||||
runtime.exit.mockClear();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue