@@ -190,7 +190,9 @@ describe('Oracle Project Management documented operations', () => {
190190 it ( 'reads milestones as a task filter and writes them with the milestone flag forced on' , async ( ) => {
191191 mocks . json . mockResolvedValueOnce ( page ( [ { TaskId : 202 , MilestoneFlag : true } ] ) )
192192 await execute ( 'list_milestones' , { ...auth , projectId : '101' , q : "Name like 'Release%'" } )
193- expect ( mocks . json . mock . calls [ 0 ] [ 1 ] . query . q ) . toBe ( "MilestoneFlag=true and (Name like 'Release%')" )
193+ expect ( mocks . json . mock . calls [ 0 ] [ 1 ] . query . q ) . toBe (
194+ "MilestoneFlag=true and (Name like 'Release%')"
195+ )
194196 mocks . json . mockResolvedValueOnce ( { TaskId : 202 , MilestoneFlag : true } )
195197 await execute ( 'create_milestone' , {
196198 ...auth ,
@@ -536,20 +538,17 @@ describe('Oracle Project Management documented operations', () => {
536538 'projectContractInvoices/110' ,
537539 '110' ,
538540 ] ,
539- ] as const ) (
540- '%s supports empty successful responses' ,
541- async ( operation , params , path , id ) => {
542- expect ( await execute ( operation , { ...auth , ...params } ) ) . toEqual ( {
543- success : true ,
544- output : { deleted : true , id } ,
545- } )
546- expect ( mocks . empty . mock . calls [ 0 ] [ 1 ] ) . toEqual ( {
547- address : { family : 'fscm' , relativePath : path } ,
548- method : 'DELETE' ,
549- } )
550- expect ( mocks . json ) . not . toHaveBeenCalled ( )
551- }
552- )
541+ ] as const ) ( '%s supports empty successful responses' , async ( operation , params , path , id ) => {
542+ expect ( await execute ( operation , { ...auth , ...params } ) ) . toEqual ( {
543+ success : true ,
544+ output : { deleted : true , id } ,
545+ } )
546+ expect ( mocks . empty . mock . calls [ 0 ] [ 1 ] ) . toEqual ( {
547+ address : { family : 'fscm' , relativePath : path } ,
548+ method : 'DELETE' ,
549+ } )
550+ expect ( mocks . json ) . not . toHaveBeenCalled ( )
551+ } )
553552
554553 it . each ( [
555554 [ 'get_project' , { projectId : 9007199254740992 } ] ,
@@ -572,14 +571,11 @@ describe('Oracle Project Management documented operations', () => {
572571 'transition_project_contract_invoice' ,
573572 { invoiceId : '110' , action : 'approve' , unreleaseComments : 'Wrong action' } ,
574573 ] ,
575- ] as const ) (
576- 'rejects invalid input to %s before any provider call' ,
577- async ( operation , params ) => {
578- await expect ( execute ( operation , { ...auth , ...params } ) ) . rejects . toThrow ( )
579- expect ( mocks . json ) . not . toHaveBeenCalled ( )
580- expect ( mocks . empty ) . not . toHaveBeenCalled ( )
581- }
582- )
574+ ] as const ) ( 'rejects invalid input to %s before any provider call' , async ( operation , params ) => {
575+ await expect ( execute ( operation , { ...auth , ...params } ) ) . rejects . toThrow ( )
576+ expect ( mocks . json ) . not . toHaveBeenCalled ( )
577+ expect ( mocks . empty ) . not . toHaveBeenCalled ( )
578+ } )
583579
584580 it ( 'does not invent empty resource or action shapes, and marks uncertain mutations non-retryable' , async ( ) => {
585581 mocks . json . mockResolvedValueOnce ( { unrelated : 'canary' } )
@@ -595,14 +591,16 @@ describe('Oracle Project Management documented operations', () => {
595591 } )
596592
597593 it ( 'preserves safe foundation errors and cancellation without leaking unexpected errors' , async ( ) => {
598- mocks . json . mockRejectedValueOnce ( new OracleFusionProviderError ( 'Oracle Fusion access denied' , 403 ) )
594+ mocks . json . mockRejectedValueOnce (
595+ new OracleFusionProviderError ( 'Oracle Fusion access denied' , 403 )
596+ )
599597 expect ( ( await execute ( 'get_project' , { ...auth , projectId : '101' } ) ) . error ) . toBe (
600598 'Oracle Fusion access denied'
601599 )
602600 mocks . json . mockRejectedValueOnce ( new Error ( 'provider-secret-canary' ) )
603- expect ( JSON . stringify ( await execute ( 'get_project' , { ... auth , projectId : '101' } ) ) ) . not . toContain (
604- 'provider-secret-canary'
605- )
601+ expect (
602+ JSON . stringify ( await execute ( 'get_project' , { ... auth , projectId : '101' } ) )
603+ ) . not . toContain ( 'provider-secret-canary' )
606604 const controller = new AbortController ( )
607605 mocks . json . mockImplementationOnce ( ( ) => {
608606 controller . abort ( )
0 commit comments