mirror of https://github.com/openclaw/openclaw.git
test: assert console.error in async-rejection stage test
This commit is contained in:
parent
0a636aef24
commit
ffa1e5fa92
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue