@@ -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