mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 13:22:14 +00:00
test: assert console.error in async-rejection stage test
This commit is contained in:
@@ -64,6 +64,10 @@ describe("runGatewayHttpRequestStages", () => {
|
||||
|
||||
expect(result).toBe(true);
|
||||
expect(stageC).toHaveBeenCalled();
|
||||
expect(consoleSpy).toHaveBeenCalledWith(
|
||||
expect.stringContaining('stage "async-broken" threw'),
|
||||
expect.any(Error),
|
||||
);
|
||||
|
||||
consoleSpy.mockRestore();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user