mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 12:00:43 +00:00
test: tighten codex trajectory recorder assertion
This commit is contained in:
@@ -27,10 +27,10 @@ afterEach(() => {
|
||||
function expectTrajectoryRecorder(
|
||||
recorder: ReturnType<typeof createCodexTrajectoryRecorder>,
|
||||
): CodexTrajectoryRecorder {
|
||||
expect(recorder).toEqual(expect.objectContaining({ recordEvent: expect.any(Function) }));
|
||||
if (recorder === null) {
|
||||
throw new Error("Expected Codex trajectory recorder");
|
||||
}
|
||||
expect(typeof recorder.recordEvent).toBe("function");
|
||||
return recorder;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user