mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-02 11:04:54 +00:00
test: dedupe daemon lifecycle mock read
This commit is contained in:
@@ -235,7 +235,7 @@ describe("runServiceRestart token drift", () => {
|
||||
expect(payload.result).toBe("stopped");
|
||||
expect(payload.service?.loaded).toBe(false);
|
||||
expect(service.stop).toHaveBeenCalledTimes(1);
|
||||
const [stopOptions] = service.stop.mock.calls.at(0) ?? [];
|
||||
const [stopOptions] = service.stop.mock.calls[0] ?? [];
|
||||
expect(stopOptions?.env).toBe(process.env);
|
||||
expect(stopOptions?.disable).toBe(true);
|
||||
expect(onNotLoaded).not.toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user