Skip to content

Commit f15c1f3

Browse files
GabrielDraporclaude
andcommitted
style(agent): run prettier over the self-trace tests
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DXLChvn8HPA42wsuDUFYo
1 parent 1d0a03b commit f15c1f3

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

frontend/ee/agent/src/__tests__/self-trace.test.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ describe("withAgentTrace", () => {
5959
await fn();
6060
throw new Error("span close failed");
6161
});
62-
await mod.withAgentTrace(meta, async () => { calls += 1; return 1; });
62+
await mod.withAgentTrace(meta, async () => {
63+
calls += 1;
64+
return 1;
65+
});
6366
expect(calls).toBe(1);
6467
});
6568

@@ -83,7 +86,11 @@ describe("withAgentTrace", () => {
8386
it("still propagates fn's own error", async () => {
8487
// Once fn has entered, a rejection is the caller's failure, not tracing's.
8588
const boom = new Error("agent blew up");
86-
await expect(mod.withAgentTrace(meta, async () => { throw boom; })).rejects.toBe(boom);
89+
await expect(
90+
mod.withAgentTrace(meta, async () => {
91+
throw boom;
92+
}),
93+
).rejects.toBe(boom);
8794
});
8895

8996
it("runs fn inside observe with the forced trace id and returns available after flush", async () => {
@@ -158,7 +165,9 @@ describe("rcaSpanName", () => {
158165
});
159166

160167
it("counts instead of listing once more than one fired", () => {
161-
expect(mod.rcaSpanName(["Hallucination Detector", "Failure Detector"])).toBe("rca: 2 detectors");
168+
expect(mod.rcaSpanName(["Hallucination Detector", "Failure Detector"])).toBe(
169+
"rca: 2 detectors",
170+
);
162171
expect(mod.rcaSpanName(["a", "b", "c", "d", "e"])).toBe("rca: 5 detectors");
163172
});
164173

0 commit comments

Comments
 (0)