Skip to content

Commit cbeeead

Browse files
committed
Delete collections after all tests
1 parent b5e43ff commit cbeeead

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/apps/mooc_backend/features/step_definitions/controller.steps.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ Given('I send a GET request to {string}', (route: string) => {
1313
});
1414

1515
Given('I send a PUT request to {string} with body:', (route: string, body: string) => {
16-
_request = request(app)
17-
.put(route)
18-
.send(JSON.parse(body));
16+
_request = request(app).put(route).send(JSON.parse(body));
1917
});
2018

2119
Then('the response status code should be {int}', async (status: number) => {
@@ -37,5 +35,6 @@ Before(async () => {
3735

3836
AfterAll(async () => {
3937
const environmentArranger: Promise<EnvironmentArranger> = container.get('Mooc.EnvironmentArranger');
38+
await (await environmentArranger).arrange();
4039
await (await environmentArranger).close();
4140
});

0 commit comments

Comments
 (0)