ci: Fix typing issues in cli tests (no-changelog) (#5227)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-23 17:41:55 +01:00
committed by GitHub
parent 96dddf12e1
commit bd14ec1110
3 changed files with 11 additions and 10 deletions

View File

@@ -67,9 +67,9 @@ test('should not report non-risky official nodes', async () => {
await saveManualTriggerWorkflow();
const testAudit = await audit(['nodes']);
if (Array.isArray(testAudit)) return;
const report = testAudit?.[toReportTitle('nodes')];
const report = testAudit[toReportTitle('nodes')];
if (!report) return;
for (const section of report.sections) {