message: API: Add TestHelper delete request methods
diff: @@ -40,6 +40,13 @@ export class TestHelper {
  .catch((err) => err.response);
  }
  + public async basicUserDeleteRequest(user: IUser, url: string) {
  + return await chai.request(this.app)
  + .del(url)
  + .set('Cookie', `token=${JwtUtils.generateToken(user)}`)
  + .catch((err) => err.response);
  + }
  +
  public async commonUserGetRequest(user: IUser, urlPostfix: string, queryOptions?: string | object) {
  return await this.basicUserGetRequest(user, this.baseUrl + urlPostfix, queryOptions);
  }
  @@ -47,4 +54,8 @@ export class TestHelper {
  public async commonUserPostRequest(user: IUser, urlPostfix: string, sendData?: string | object) {
  return await this.basicUserPostRequest(user, this.baseUrl + urlPostfix, sendData);
  }
  +
  + public async commonUserDeleteRequest(user: IUser, urlPostfix: string) {
  + return await this.basicUserDeleteRequest(user, this.baseUrl + urlPostfix);
  + }
  }
  