


























@@ -40,10 +40,9 @@ describe("runGatewayHttpRequestStages", () => {
40404141expect(result).toBe(true);
4242expect(stageC).toHaveBeenCalled();
43-expect(consoleSpy).toHaveBeenCalledWith(
44-expect.stringContaining('stage "broken-facade" threw'),
45-stageError,
46-);
43+expect(consoleSpy.mock.calls).toEqual([
44+['[gateway-http] stage "broken-facade" threw — skipping:', stageError],
45+]);
47464847consoleSpy.mockRestore();
4948});
@@ -68,10 +67,9 @@ describe("runGatewayHttpRequestStages", () => {
68676968expect(result).toBe(true);
7069expect(stageC).toHaveBeenCalled();
71-expect(consoleSpy).toHaveBeenCalledWith(
72-expect.stringContaining('stage "async-broken" threw'),
73-stageError,
74-);
70+expect(consoleSpy.mock.calls).toEqual([
71+['[gateway-http] stage "async-broken" threw — skipping:', stageError],
72+]);
75737674consoleSpy.mockRestore();
7775});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。