Replace fs.rmdir recursive by fs.rm recursive

fs.rmdir(path, { recursive: true}) is deprecated and
is replaced by fs.rm(path, { recursive: true}).

Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
Yannick Bungers 2022-01-30 22:00:17 +01:00 committed by David Mehren
parent e4a9562455
commit 42ad99e20b
4 changed files with 6 additions and 6 deletions

View file

@ -442,7 +442,7 @@ describe('Notes', () => {
// delete the file afterwards
await fs.unlink(join(uploadPath, fileName));
}
await fs.rmdir(uploadPath, { recursive: true });
await fs.rm(uploadPath, { recursive: true });
});
it('fails, when note does not exist', async () => {
await request(testSetup.app.getHttpServer())