@@ -15,7 +15,7 @@ export const testRunService = {
1515 setComment,
1616} ;
1717
18- function getList ( buildId : string ) : Promise < TestRun [ ] > {
18+ async function getList ( buildId : string ) : Promise < TestRun [ ] > {
1919 const requestOptions = {
2020 method : "GET" ,
2121 headers : authHeader ( ) ,
@@ -27,7 +27,7 @@ function getList(buildId: string): Promise<TestRun[]> {
2727 ) . then ( handleResponse ) ;
2828}
2929
30- function remove ( id : string ) : Promise < Number > {
30+ async function remove ( id : string ) : Promise < TestRun > {
3131 const requestOptions = {
3232 method : "DELETE" ,
3333 headers : authHeader ( ) ,
@@ -38,7 +38,7 @@ function remove(id: string): Promise<Number> {
3838 ) ;
3939}
4040
41- function recalculateDiff ( id : string ) : Promise < TestRun > {
41+ async function recalculateDiff ( id : string ) : Promise < TestRun > {
4242 const requestOptions = {
4343 method : "GET" ,
4444 headers : authHeader ( ) ,
@@ -50,7 +50,7 @@ function recalculateDiff(id: string): Promise<TestRun> {
5050 ) . then ( handleResponse ) ;
5151}
5252
53- function approve ( id : string , merge : boolean ) : Promise < TestRun > {
53+ async function approve ( id : string , merge : boolean ) : Promise < TestRun > {
5454 const requestOptions = {
5555 method : "GET" ,
5656 headers : authHeader ( ) ,
@@ -62,7 +62,7 @@ function approve(id: string, merge: boolean): Promise<TestRun> {
6262 ) . then ( handleResponse ) ;
6363}
6464
65- function reject ( id : string ) : Promise < TestRun > {
65+ async function reject ( id : string ) : Promise < TestRun > {
6666 const requestOptions = {
6767 method : "GET" ,
6868 headers : authHeader ( ) ,
@@ -73,7 +73,7 @@ function reject(id: string): Promise<TestRun> {
7373 ) ;
7474}
7575
76- function setIgnoreAreas (
76+ async function setIgnoreAreas (
7777 id : string ,
7878 ignoreAreas : IgnoreArea [ ]
7979) : Promise < TestRun > {
@@ -89,7 +89,7 @@ function setIgnoreAreas(
8989 ) . then ( handleResponse ) ;
9090}
9191
92- function setComment ( id : string , comment : string ) : Promise < TestRun > {
92+ async function setComment ( id : string , comment : string ) : Promise < TestRun > {
9393 const requestOptions = {
9494 method : "PUT" ,
9595 headers : { "Content-Type" : "application/json" , ...authHeader ( ) } ,
0 commit comments