mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 15:44:46 +00:00
test: count cli command calls
This commit is contained in:
@@ -93,7 +93,7 @@ describe("gateway --force helpers", () => {
|
||||
|
||||
const killed = forceFreePort(18789);
|
||||
|
||||
expect(execFileSync).toHaveBeenCalled();
|
||||
expect(execFileSync).toHaveBeenCalledTimes(1);
|
||||
expect(killMock).toHaveBeenCalledTimes(2);
|
||||
expect(killMock).toHaveBeenCalledWith(42, "SIGTERM");
|
||||
expect(killMock).toHaveBeenCalledWith(99, "SIGTERM");
|
||||
|
||||
Reference in New Issue
Block a user