mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
MediaE2E: Add app.close() to afterAll
This terminates the app after all test have finished. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
b2e89187f3
commit
4c02327546
2 changed files with 4 additions and 2 deletions
|
@ -133,6 +133,7 @@ describe('Media', () => {
|
|||
|
||||
afterAll(async () => {
|
||||
// Delete the upload folder
|
||||
await fs.rmdir(uploadPath);
|
||||
await fs.rmdir(uploadPath, { recursive: true });
|
||||
await app.close();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -142,6 +142,7 @@ describe('Media', () => {
|
|||
|
||||
afterAll(async () => {
|
||||
// Delete the upload folder
|
||||
await fs.rmdir(uploadPath);
|
||||
await fs.rmdir(uploadPath, { recursive: true });
|
||||
await app.close();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue