tests: Remove unnecessary return

This commit is contained in:
Richard Hansen 2021-05-09 16:44:36 -04:00
parent 0852df74f1
commit 2414203434

View file

@ -66,9 +66,9 @@ const getPluginTests = async (callback) => {
.filter(([plugin, specDir]) => fs.existsSync(specDir)) // check plugin exists
.map(async ([plugin, specDir]) => {
const specFiles = await fsp.readdir(specDir);
return specFiles.map((spec) => {
for (const spec of specFiles) {
pluginSpecs.push(staticDir + plugin + specPath + spec);
});
}
}));
return pluginSpecs;
};