Skip to content

Commit 8fc6f20

Browse files
committed
style(dashboard-agent): format the two eval test files
1 parent 0cae301 commit 8fc6f20

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

internal-packages/dashboard-agent/src/eval-error-category.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,9 @@ describe("the derived error category", () => {
139139
it("does not label a run that simply carries an error field", () => {
140140
// `curateRun` always emits the key, undefined when the run succeeded, and a run that
141141
// failed is still a tool call that worked.
142-
const succeeded = redactEvalToolValue(curateRun({ id: "run_1", status: "COMPLETED" })) as Record<
143-
string,
144-
unknown
145-
>;
142+
const succeeded = redactEvalToolValue(
143+
curateRun({ id: "run_1", status: "COMPLETED" })
144+
) as Record<string, unknown>;
146145
expect(succeeded).not.toHaveProperty("errorCategory");
147146
expect(toolResultErrored(succeeded)).toBe(false);
148147

internal-packages/dashboard-agent/src/eval-redaction.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ describe("an errored tool result", () => {
194194
});
195195

196196
it("reads the derived category once the message is gone", () => {
197-
expect(toolResultErrored({ errorCategory: "timeout", error: { redacted: "error" } })).toBe(true);
197+
expect(toolResultErrored({ errorCategory: "timeout", error: { redacted: "error" } })).toBe(
198+
true
199+
);
198200
expect(toolResultErrored({ error: { name: "TimeoutError" } })).toBe(false);
199201
expect(toolResultErrored({ id: "run_1" })).toBe(false);
200202
expect(toolResultErrored("boom")).toBe(false);

0 commit comments

Comments
 (0)