Skip to content

Commit a8e6c2b

Browse files
committed
2 parents 3a18569 + 9976567 commit a8e6c2b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

infra/api/apiClient/ApiClient.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ export class ApiClient {
66
this.request = request;
77
}
88

9-
public async get<T>(url: string, options: ApiOptionalParams<T> = {}) {
9+
async get<T>(url: string, options: ApiOptionalParams<T> = {}) {
1010
let response = await this.makeRequest(RequestMethod.GET, url, options)
1111
return response;
1212
}
1313

14-
public async post<T>(url: string, options: ApiOptionalParams<T> = {}) {
14+
async post<T>(url: string, options: ApiOptionalParams<T> = {}) {
1515
let response = await this.makeRequest(RequestMethod.POST, url, options)
1616
return response;
1717
}
1818

19-
public async put<T>(url: string, options: ApiOptionalParams<T> = {}) {
19+
async put<T>(url: string, options: ApiOptionalParams<T> = {}) {
2020
let response = await this.makeRequest(RequestMethod.PUT, url, options)
2121
return response;
2222
}
2323

24-
public async patch<T>(url: string, options: ApiOptionalParams<T> = {}) {
24+
async patch<T>(url: string, options: ApiOptionalParams<T> = {}) {
2525
let response = await this.makeRequest(RequestMethod.PATCH, url, options)
2626
return response;
2727
}
2828

29-
public async delete<T>(url: string, options: ApiOptionalParams<T> = {}) {
29+
async delete<T>(url: string, options: ApiOptionalParams<T> = {}) {
3030
let response = await this.makeRequest(RequestMethod.DELETE, url, options)
3131
return response;
3232
}
3333

34-
public async paginateRequest<T>(
34+
async paginateRequest<T>(
3535
method: RequestMethod,
3636
url: string,
3737
paginationType: PaginationType,

tests/api_tests/petStore/PetStoreApiTests.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ test.describe.serial('CRUD API tests for the Pet Store API', async () => {
1818

1919
test('create a new pet - [POST] /pet', { tag: [TestTags.PET_STORE] }, async ({ petStoreApi }) => {
2020
await test.step('create a new pet via post request', async () => {
21-
2221
let response = await petStoreApi.createNewPet(payloads.createdPet)
2322
let responseBody: IPet = await response?.json();
2423
expect(response?.status()).toBe(StatusCode.OK);

0 commit comments

Comments
 (0)