Skip to content

Commit 90c97b7

Browse files
committed
test: fix audit test cases
1 parent 903a4bd commit 90c97b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/contentstack-audit/src/audit-base-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
491491
);
492492

493493
const gfSchema = existsSync(gfPath) ? (JSON.parse(readFileSync(gfPath, 'utf8')) as ContentTypeStruct[]) : [];
494-
const ctSchema = readContentTypeSchemas(ctDirPath) as ContentTypeStruct[];
494+
const ctSchema = (readContentTypeSchemas(ctDirPath) || []) as ContentTypeStruct[];
495495

496496
return { ctSchema, gfSchema };
497497
}

0 commit comments

Comments
 (0)