Fixed favicon dir.

This commit is contained in:
SamTV12345 2024-08-19 20:53:35 +02:00
parent c52b623679
commit 43c0cdfd1e

View file

@ -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 */ }
});