@@ -431,7 +431,7 @@ describe('ApprovalAuditEvents', () => {
431431 it ( 'emits audit log on approved' , async ( ) => {
432432 const registry = createTestRegistry ( ) ;
433433 const executor = new Executor ( { registry, approvalHandler : new AutoApproveHandler ( ) } ) ;
434- const infoSpy = vi . spyOn ( console , 'info ' ) . mockImplementation ( ( ) => { } ) ;
434+ const infoSpy = vi . spyOn ( console , 'warn ' ) . mockImplementation ( ( ) => { } ) ;
435435 try {
436436 await executor . call ( 'test.approval_required' ) ;
437437 const approvalLogs = infoSpy . mock . calls . filter (
@@ -448,7 +448,7 @@ describe('ApprovalAuditEvents', () => {
448448 it ( 'emits audit log on denied' , async ( ) => {
449449 const registry = createTestRegistry ( ) ;
450450 const executor = new Executor ( { registry, approvalHandler : new AlwaysDenyHandler ( ) } ) ;
451- const infoSpy = vi . spyOn ( console , 'info ' ) . mockImplementation ( ( ) => { } ) ;
451+ const infoSpy = vi . spyOn ( console , 'warn ' ) . mockImplementation ( ( ) => { } ) ;
452452 try {
453453 await expect ( executor . call ( 'test.approval_required' ) ) . rejects . toThrow ( ApprovalDeniedError ) ;
454454 const approvalLogs = infoSpy . mock . calls . filter (
@@ -467,7 +467,7 @@ describe('ApprovalAuditEvents', () => {
467467 createApprovalResult ( { status : 'pending' , approvalId : 'tok-123' } ) ,
468468 ) ;
469469 const executor = new Executor ( { registry, approvalHandler : handler } ) ;
470- const infoSpy = vi . spyOn ( console , 'info ' ) . mockImplementation ( ( ) => { } ) ;
470+ const infoSpy = vi . spyOn ( console , 'warn ' ) . mockImplementation ( ( ) => { } ) ;
471471 try {
472472 await expect ( executor . call ( 'test.approval_required' ) ) . rejects . toThrow ( ApprovalPendingError ) ;
473473 const approvalLogs = infoSpy . mock . calls . filter (
@@ -483,7 +483,7 @@ describe('ApprovalAuditEvents', () => {
483483 it ( 'does not emit audit log when gate is skipped' , async ( ) => {
484484 const registry = createTestRegistry ( ) ;
485485 const executor = new Executor ( { registry } ) ;
486- const infoSpy = vi . spyOn ( console , 'info ' ) . mockImplementation ( ( ) => { } ) ;
486+ const infoSpy = vi . spyOn ( console , 'warn ' ) . mockImplementation ( ( ) => { } ) ;
487487 try {
488488 await executor . call ( 'test.approval_required' ) ;
489489 const approvalLogs = infoSpy . mock . calls . filter (
@@ -504,7 +504,7 @@ describe('ApprovalAuditEvents', () => {
504504 createApprovalResult ( { status : 'approved' , approvedBy : 'test-user' , reason : 'looks good' } ) ,
505505 ) ;
506506 const executor = new Executor ( { registry, approvalHandler : handler } ) ;
507- const infoSpy = vi . spyOn ( console , 'info ' ) . mockImplementation ( ( ) => { } ) ;
507+ const infoSpy = vi . spyOn ( console , 'warn ' ) . mockImplementation ( ( ) => { } ) ;
508508
509509 try {
510510 const ctx = Context . create ( executor ) ;
@@ -529,7 +529,7 @@ describe('ApprovalAuditEvents', () => {
529529 const mockSpan = { events : mockSpanEvents } ;
530530
531531 const executor = new Executor ( { registry, approvalHandler : new AlwaysDenyHandler ( ) } ) ;
532- const infoSpy = vi . spyOn ( console , 'info ' ) . mockImplementation ( ( ) => { } ) ;
532+ const infoSpy = vi . spyOn ( console , 'warn ' ) . mockImplementation ( ( ) => { } ) ;
533533
534534 try {
535535 const ctx = Context . create ( executor ) ;
@@ -547,7 +547,7 @@ describe('ApprovalAuditEvents', () => {
547547 it ( 'works without tracing spans' , async ( ) => {
548548 const registry = createTestRegistry ( ) ;
549549 const executor = new Executor ( { registry, approvalHandler : new AutoApproveHandler ( ) } ) ;
550- const infoSpy = vi . spyOn ( console , 'info ' ) . mockImplementation ( ( ) => { } ) ;
550+ const infoSpy = vi . spyOn ( console , 'warn ' ) . mockImplementation ( ( ) => { } ) ;
551551 try {
552552 const result = await executor . call ( 'test.approval_required' ) ;
553553 expect ( result [ 'status' ] ) . toBe ( 'executed' ) ;
0 commit comments