mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-24 01:21:09 +00:00
E2ETests: Use recursive for 'uploads/' deletion.
This ensures the folder is always deleted, even if there are still files (from previous broken tests) in it. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
9b54733ed3
commit
be78b9a03d
3 changed files with 3 additions and 3 deletions
|
@ -256,7 +256,7 @@ describe('Notes', () => {
|
|||
// delete the file afterwards
|
||||
await fs.unlink(join(uploadPath, fileName));
|
||||
}
|
||||
await fs.rmdir(uploadPath);
|
||||
await fs.rmdir(uploadPath, { recursive: true });
|
||||
});
|
||||
it('fails, when note does not exist', async () => {
|
||||
await request(app.getHttpServer())
|
||||
|
|
|
@ -270,7 +270,7 @@ describe('Me', () => {
|
|||
// delete the file afterwards
|
||||
await fs.unlink(join(uploadPath, fileName));
|
||||
}
|
||||
await fs.rmdir(uploadPath);
|
||||
await fs.rmdir(uploadPath, { recursive: true });
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
|
|
@ -362,7 +362,7 @@ describe('Notes', () => {
|
|||
// delete the file afterwards
|
||||
await fs.unlink(join(uploadPath, fileName));
|
||||
}
|
||||
await fs.rmdir(uploadPath);
|
||||
await fs.rmdir(uploadPath, { recursive: true });
|
||||
});
|
||||
it('fails, when note does not exist', async () => {
|
||||
await request(app.getHttpServer())
|
||||
|
|
Loading…
Reference in a new issue