diff --git a/frontend/src/components/common/Resource/index.test.ts b/frontend/src/components/common/Resource/index.test.ts index 0b9f1ab355..e4573b53a2 100644 --- a/frontend/src/components/common/Resource/index.test.ts +++ b/frontend/src/components/common/Resource/index.test.ts @@ -39,7 +39,7 @@ function getFilesToVerify() { const filesToVerify: string[] = []; fs.readdirSync(__dirname).forEach(file => { const fileNoSuffix = file.replace(/\.[^/.]+$/, ''); - if (fileNoSuffix && !avoidCheck.find(suffix => fileNoSuffix.endsWith(suffix))) { + if (!avoidCheck.find(suffix => fileNoSuffix.endsWith(suffix))) { filesToVerify.push(fileNoSuffix); } }); diff --git a/frontend/src/components/common/index.test.ts b/frontend/src/components/common/index.test.ts index cb3737dd62..0af5c688a8 100644 --- a/frontend/src/components/common/index.test.ts +++ b/frontend/src/components/common/index.test.ts @@ -49,7 +49,7 @@ function getFilesToVerify() { const filesToVerify: string[] = []; fs.readdirSync(__dirname).forEach(file => { const fileNoSuffix = file.replace(/\.[^/.]+$/, ''); - if (fileNoSuffix && !avoidCheck.find(suffix => fileNoSuffix.endsWith(suffix))) { + if (!avoidCheck.find(suffix => fileNoSuffix.endsWith(suffix))) { filesToVerify.push(fileNoSuffix); } });