Skip to content

Commit f94285c

Browse files
committed
Fix tests broken by lintcert result format changes
1 parent f846bcb commit f94285c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/certificates.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ const validateLintSiteCertResults = (cert: string, results: any[]) => {
2121
// support these in any practical way. In future, these may be optional for short-lived
2222
// certs, so we could reduce our leaf cert lifetimes to avoid these issues.
2323
const ignoredErrors = errors.filter((result: any) => {
24-
return result.Finding.includes('OCSP') ||
25-
result.Finding.includes('CRL') ||
26-
result.Finding.includes('authorityInformationAccess') ||
27-
result.Code.includes('authority_info_access')
24+
return result.Finding?.includes('OCSP') ||
25+
result.Finding?.includes('CRL') ||
26+
result.Finding?.includes('authorityInformationAccess') ||
27+
result.Code?.includes('authority_info_access')
2828
});
2929

3030
const failures = errors.filter((result: any) => !ignoredErrors.includes(result));

0 commit comments

Comments
 (0)