@@ -24,14 +24,14 @@ export const mockDeleteProject = async (page: Page, project: Project) => {
24
24
route . fulfill ( {
25
25
status : 200 ,
26
26
body : JSON . stringify ( project ) ,
27
- } )
27
+ } ) ,
28
28
) ;
29
29
} ;
30
30
31
31
export const mockGetBuilds = async (
32
32
page : Page ,
33
33
projectId : string ,
34
- builds : Build [ ]
34
+ builds : Build [ ] ,
35
35
) => {
36
36
return page . route (
37
37
`${ API_URL } /builds?projectId=${ projectId } &take=10&skip=0` ,
@@ -43,77 +43,77 @@ export const mockGetBuilds = async (
43
43
take : 10 ,
44
44
total : 3 ,
45
45
} ) ,
46
- } )
46
+ } ) ,
47
47
) ;
48
48
} ;
49
49
50
50
export const mockGetBuildDetails = async ( page : Page , build : Build ) => {
51
51
return page . route ( `${ API_URL } /builds/${ build . id } ` , ( route ) =>
52
52
route . fulfill ( {
53
53
body : JSON . stringify ( build ) ,
54
- } )
54
+ } ) ,
55
55
) ;
56
56
} ;
57
57
58
58
export const mockGetTestRuns = async (
59
59
page : Page ,
60
60
buildId : string ,
61
- testRuns : TestRun [ ]
61
+ testRuns : TestRun [ ] ,
62
62
) => {
63
63
return page . route ( `${ API_URL } /test-runs?buildId=${ buildId } ` , ( route ) =>
64
64
route . fulfill ( {
65
65
body : JSON . stringify ( testRuns ) ,
66
- } )
66
+ } ) ,
67
67
) ;
68
68
} ;
69
69
70
70
export const mockTestRun = async ( page : Page , testRun : TestRun ) => {
71
71
return page . route ( `${ API_URL } /test-runs/${ testRun . id } ` , ( route ) =>
72
72
route . fulfill ( {
73
73
body : JSON . stringify ( testRun ) ,
74
- } )
74
+ } ) ,
75
75
) ;
76
76
} ;
77
77
78
78
export const mockImage = async ( page : Page , image : string ) => {
79
79
return page . route ( `${ API_URL } /${ image } ` , ( route ) =>
80
80
route . fulfill ( {
81
81
path : `integration_tests/images/${ image } ` ,
82
- } )
82
+ } ) ,
83
83
) ;
84
84
} ;
85
85
86
86
export const mockGetUsers = async ( page : Page , users : User [ ] ) => {
87
87
return page . route ( `${ API_URL } /users/all` , ( route ) =>
88
88
route . fulfill ( {
89
89
body : JSON . stringify ( users ) ,
90
- } )
90
+ } ) ,
91
91
) ;
92
92
} ;
93
93
94
94
export const mockGetTestVariations = async (
95
95
page : Page ,
96
96
projectId : string ,
97
- testVariations : TestVariation [ ]
97
+ testVariations : TestVariation [ ] ,
98
98
) => {
99
99
return page . route (
100
100
`${ API_URL } /test-variations?projectId=${ projectId } ` ,
101
101
( route ) =>
102
102
route . fulfill ( {
103
103
body : JSON . stringify ( testVariations ) ,
104
- } )
104
+ } ) ,
105
105
) ;
106
106
} ;
107
107
108
108
export const mockGetTestVariationDetails = async (
109
109
page : Page ,
110
- testVariation : TestVariation
110
+ testVariation : TestVariation ,
111
111
) => {
112
112
return page . route (
113
113
`${ API_URL } /test-variations/details/${ testVariation . id } ` ,
114
114
( route ) =>
115
115
route . fulfill ( {
116
116
body : JSON . stringify ( testVariation ) ,
117
- } )
117
+ } ) ,
118
118
) ;
119
119
} ;
0 commit comments