@@ -12,7 +12,7 @@ import { type SimpleGit, simpleGit } from 'simple-git';
1212import { type MockInstance , expect } from 'vitest' ;
1313import {
1414 type ReportFragment ,
15- downloadFromPortal ,
15+ downloadReportFromPortal ,
1616} from '@code-pushup/portal-client' ;
1717import {
1818 type CoreConfig ,
@@ -43,7 +43,7 @@ vi.mock('@code-pushup/portal-client', async importOriginal => {
4343 await importOriginal ( ) ;
4444 return {
4545 ...mod ,
46- downloadFromPortal : vi . fn ( simulateDownloadFromPortal ) ,
46+ downloadReportFromPortal : vi . fn ( simulateDownloadReportFromPortal ) ,
4747 } ;
4848} ) ;
4949
@@ -84,7 +84,7 @@ const fixturePaths = {
8484 } ,
8585} ;
8686
87- function simulateDownloadFromPortal ( ) {
87+ function simulateDownloadReportFromPortal ( ) {
8888 return utils . readJsonFile < ReportFragment > ( fixturePaths . reports . before . portal ) ;
8989}
9090
@@ -500,16 +500,16 @@ describe('runInCI', () => {
500500 } ,
501501 } satisfies RunResult ) ;
502502
503- expect ( downloadFromPortal ) . toHaveBeenCalledWith <
504- Parameters < typeof downloadFromPortal >
503+ expect ( downloadReportFromPortal ) . toHaveBeenCalledWith <
504+ Parameters < typeof downloadReportFromPortal >
505505 > ( {
506506 server : 'https://api.code-pushup.dunder-mifflin.org/graphql' ,
507507 apiKey : 'cp_abcdef0123456789' ,
508508 parameters : {
509509 organization : 'dunder-mifflin' ,
510510 project : 'website' ,
511511 commit : refs . base . sha ,
512- withDetails : true ,
512+ withAuditDetails : true ,
513513 } ,
514514 } ) ;
515515
0 commit comments