From 43c0cdfd1e3adcaf28fedc46d05f48b05cbcadd5 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:53:35 +0200 Subject: [PATCH] Fixed favicon dir. --- src/tests/backend/specs/favicon.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tests/backend/specs/favicon.ts b/src/tests/backend/specs/favicon.ts index 6b6230b4b..1a1a9ece7 100644 --- a/src/tests/backend/specs/favicon.ts +++ b/src/tests/backend/specs/favicon.ts @@ -36,10 +36,8 @@ describe(__filename, function () { delete settings.skinName; Object.assign(settings, backupSettings); try { - // TODO: The {recursive: true} option wasn't added to fsp.rmdir() until Node.js v12.10.0 so we - // can't rely on it until support for Node.js v10 is dropped. await fsp.unlink(path.join(skinDir, 'favicon.ico')); - await fsp.rmdir(skinDir, {recursive: true}); + await fsp.rm(skinDir, {recursive: true}); } catch (err) { /* intentionally ignored */ } });