

























@@ -16,13 +16,11 @@ describe("createRunStateMachine", () => {
1616});
1717machine.onRunStart();
1818machine.onRunEnd();
19-expect(setStatus).toHaveBeenNthCalledWith(
20-2,
21-expect.objectContaining({ activeRuns: 1, busy: true, lastRunActivityAt: 123 }),
22-);
23-expect(setStatus).toHaveBeenLastCalledWith(
24-expect.objectContaining({ activeRuns: 0, busy: false, lastRunActivityAt: 123 }),
25-);
19+expect(setStatus.mock.calls).toEqual([
20+[{ activeRuns: 0, busy: false }],
21+[{ activeRuns: 1, busy: true, lastRunActivityAt: 123 }],
22+[{ activeRuns: 0, busy: false, lastRunActivityAt: 123 }],
23+]);
2624});
27252826it("stops publishing after lifecycle abort", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。