Skip to content

Commit 27e23be

Browse files
author
Zvonimir Sabljic
committed
Small refactor
1 parent ea45b17 commit 27e23be

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/helpers/unitTests.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ async function processFile(filePath) {
4040
let ast = await getAstFromFilePath(filePath);
4141
let syntaxType = await getModuleTypeFromFilePath(ast);
4242
processAst(ast, (funcName, path, type) => {
43-
if (type === 'exportFnDef') {
44-
exportsFn.push(funcName);
45-
} else if (type === 'exportFn') {
43+
if (type === 'exportFn' || type === 'exportFnDef') {
4644
exportsFn.push(funcName);
4745
} else if (type === 'exportObj') {
4846
exportsObj.push(funcName);

0 commit comments

Comments
 (0)