Fix linting issues

This commit is contained in:
Phillip Thelen
2024-04-26 13:15:30 +02:00
parent fbdaa50fcf
commit 99a7b90247
14 changed files with 65 additions and 42 deletions

View File

@@ -54,7 +54,9 @@ describe('contentLib', () => {
let resSpy;
beforeEach(() => {
resSpy = generateRes();
fs.rmdirSync(contentLib.CONTENT_CACHE_PATH, { recursive: true });
if (fs.existsSync(contentLib.CONTENT_CACHE_PATH)) {
fs.rmdirSync(contentLib.CONTENT_CACHE_PATH, { recursive: true });
}
fs.mkdirSync(contentLib.CONTENT_CACHE_PATH);
});