We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9757a62 commit 2bdb774Copy full SHA for 2bdb774
1 file changed
extensions/tokenjuice/index.test.ts
@@ -48,8 +48,8 @@ describe("tokenjuice bundled plugin", () => {
48
49
expect(createTokenjuiceOpenClawEmbeddedExtension).toHaveBeenCalledTimes(1);
50
expect(tokenjuiceFactory).toHaveBeenCalledTimes(1);
51
- expect(registerAgentToolResultMiddleware).toHaveBeenCalledWith(expect.any(Function), {
52
- runtimes: ["pi", "codex"],
53
- });
+ const registration = registerAgentToolResultMiddleware.mock.calls[0];
+ expect(typeof registration?.[0]).toBe("function");
+ expect(registration?.[1]).toEqual({ runtimes: ["pi", "codex"] });
54
});
55
0 commit comments