mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
TypeScript bug bashing
This commit is contained in:
@@ -69,17 +69,21 @@ describe.each([
|
||||
if (flag) {
|
||||
/* behaviour when ZDR is *on* */
|
||||
expect(payload).not.toHaveProperty("previous_response_id");
|
||||
payload.input?.forEach((m: any) =>
|
||||
expect(m.store === undefined ? false : m.store).toBe(false),
|
||||
);
|
||||
if (payload.input) {
|
||||
payload.input.forEach((m: any) =>
|
||||
expect(m.store === undefined ? false : m.store).toBe(false),
|
||||
);
|
||||
}
|
||||
} else {
|
||||
/* behaviour when ZDR is *off* */
|
||||
expect(payload).toHaveProperty("previous_response_id");
|
||||
payload.input?.forEach((m: any) => {
|
||||
if ("store" in m) {
|
||||
expect(m.store).not.toBe(false);
|
||||
}
|
||||
});
|
||||
if (payload.input) {
|
||||
payload.input.forEach((m: any) => {
|
||||
if ("store" in m) {
|
||||
expect(m.store).not.toBe(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user