@@ -24,14 +24,14 @@ export const mockDeleteProject = async (page: Page, project: Project) => {
2424 route . fulfill ( {
2525 status : 200 ,
2626 body : JSON . stringify ( project ) ,
27- } )
27+ } ) ,
2828 ) ;
2929} ;
3030
3131export const mockGetBuilds = async (
3232 page : Page ,
3333 projectId : string ,
34- builds : Build [ ]
34+ builds : Build [ ] ,
3535) => {
3636 return page . route (
3737 `${ API_URL } /builds?projectId=${ projectId } &take=10&skip=0` ,
@@ -43,77 +43,77 @@ export const mockGetBuilds = async (
4343 take : 10 ,
4444 total : 3 ,
4545 } ) ,
46- } )
46+ } ) ,
4747 ) ;
4848} ;
4949
5050export const mockGetBuildDetails = async ( page : Page , build : Build ) => {
5151 return page . route ( `${ API_URL } /builds/${ build . id } ` , ( route ) =>
5252 route . fulfill ( {
5353 body : JSON . stringify ( build ) ,
54- } )
54+ } ) ,
5555 ) ;
5656} ;
5757
5858export const mockGetTestRuns = async (
5959 page : Page ,
6060 buildId : string ,
61- testRuns : TestRun [ ]
61+ testRuns : TestRun [ ] ,
6262) => {
6363 return page . route ( `${ API_URL } /test-runs?buildId=${ buildId } ` , ( route ) =>
6464 route . fulfill ( {
6565 body : JSON . stringify ( testRuns ) ,
66- } )
66+ } ) ,
6767 ) ;
6868} ;
6969
7070export const mockTestRun = async ( page : Page , testRun : TestRun ) => {
7171 return page . route ( `${ API_URL } /test-runs/${ testRun . id } ` , ( route ) =>
7272 route . fulfill ( {
7373 body : JSON . stringify ( testRun ) ,
74- } )
74+ } ) ,
7575 ) ;
7676} ;
7777
7878export const mockImage = async ( page : Page , image : string ) => {
7979 return page . route ( `${ API_URL } /${ image } ` , ( route ) =>
8080 route . fulfill ( {
8181 path : `integration_tests/images/${ image } ` ,
82- } )
82+ } ) ,
8383 ) ;
8484} ;
8585
8686export const mockGetUsers = async ( page : Page , users : User [ ] ) => {
8787 return page . route ( `${ API_URL } /users/all` , ( route ) =>
8888 route . fulfill ( {
8989 body : JSON . stringify ( users ) ,
90- } )
90+ } ) ,
9191 ) ;
9292} ;
9393
9494export const mockGetTestVariations = async (
9595 page : Page ,
9696 projectId : string ,
97- testVariations : TestVariation [ ]
97+ testVariations : TestVariation [ ] ,
9898) => {
9999 return page . route (
100100 `${ API_URL } /test-variations?projectId=${ projectId } ` ,
101101 ( route ) =>
102102 route . fulfill ( {
103103 body : JSON . stringify ( testVariations ) ,
104- } )
104+ } ) ,
105105 ) ;
106106} ;
107107
108108export const mockGetTestVariationDetails = async (
109109 page : Page ,
110- testVariation : TestVariation
110+ testVariation : TestVariation ,
111111) => {
112112 return page . route (
113113 `${ API_URL } /test-variations/details/${ testVariation . id } ` ,
114114 ( route ) =>
115115 route . fulfill ( {
116116 body : JSON . stringify ( testVariation ) ,
117- } )
117+ } ) ,
118118 ) ;
119119} ;
0 commit comments