Skip to content

Commit 8b6ad9e

Browse files
RomarioRomario
authored andcommitted
remove only
1 parent e339b26 commit 8b6ad9e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

infra/api/apiRequests/ApiRequests.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ export enum RequestMethods {
88
DELETE = 'DELETE',
99
}
1010

11+
export enum StatusCode {
12+
OK = 200,
13+
CREATED = 201,
14+
NO_CONTENT = 204,
15+
BAD_REQUEST = 400,
16+
UNAUTHORIZED = 401,
17+
FORBIDDEN = 403,
18+
NOT_FOUND = 404,
19+
SERVER_ERROR = 500,
20+
}
21+
1122
export class ApiRequests {
1223
constructor(public apiRequestContext: APIRequestContext) {
1324
this.apiRequestContext = apiRequestContext

tests/api_tests/petStore/PetStoreCrudTests.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test.describe('CRUD API tests for the Pet Store API', async () => {
1010
petStoreCrudActions = new PetStoreCrudActions(request)
1111
})
1212

13-
test.only('get a specific pet resource', async () => {
13+
test('get a specific pet resource', async () => {
1414
await test.step('make an api request to a specific pet ID', async () => {
1515
let response = await petStoreCrudActions.getPet(petId)
1616
let responseJson = await response?.json()

0 commit comments

Comments
 (0)