Skip to content

Commit 85a97b6

Browse files
committed
test: Add missing afterAll hook
1 parent cf706ad commit 85a97b6

File tree

6 files changed

+21
-1
lines changed

6 files changed

+21
-1
lines changed

src/booking/booking.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class BookingController {
3636
constructor(private bookingService: BookingService) {}
3737

3838
/**
39-
* Get a list of user's bookings
39+
* Get a list of current user's bookings
4040
*/
4141
@Get()
4242
async findAll(@User() user: UserEntity, @Query() {limit, offset}: FindAllEntitiesDto = {}) {

test/auth.e2e-spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,8 @@ describe("AuthController (e2e)", () => {
4343
it(`${AUTH_URL}/logout (GET)`, () => {
4444
return request(app.getHttpServer()).get(`${AUTH_URL}/logout`).expect(200);
4545
});
46+
47+
afterAll(async () => {
48+
await app.close();
49+
});
4650
});

test/booking.e2e-spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,8 @@ describe("BookingController (e2e)", () => {
7979
it(`${BOOKING_URL}/:id (DELETE)`, () => {
8080
return request(app.getHttpServer()).delete(`${BOOKING_URL}/${bookingId}`).expect(200);
8181
});
82+
83+
afterAll(async () => {
84+
await app.close();
85+
});
8286
});

test/location.e2e-spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,8 @@ describe("LocationController (e2e)", () => {
6969
it(`${LOCATION_URL}/:id (DELETE)`, () => {
7070
return request(app.getHttpServer()).delete(`${LOCATION_URL}/${locationId}`).expect(200);
7171
});
72+
73+
afterAll(async () => {
74+
await app.close();
75+
});
7276
});

test/service.e2e-spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,8 @@ describe("ServiceController (e2e)", () => {
7373
it(`${SERVICE_URL}/:id (DELETE)`, () => {
7474
return request(app.getHttpServer()).delete(`${SERVICE_URL}/${serviceId}`).expect(200);
7575
});
76+
77+
afterAll(async () => {
78+
await app.close();
79+
});
7680
});

test/user.e2e-spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,8 @@ describe("UserController (e2e)", () => {
4949
it(`${USER_URL}/:id (DELETE)`, () => {
5050
return request(app.getHttpServer()).delete(`${USER_URL}/${userId}`).expect(200);
5151
});
52+
53+
afterAll(async () => {
54+
await app.close();
55+
});
5256
});

0 commit comments

Comments
 (0)