diff options
| author | ST-DDT <[email protected]> | 2023-11-14 17:11:26 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-14 16:11:26 +0000 |
| commit | 7e3c92e802614ae5e9f621d9e679dfd6f6d63cf1 (patch) | |
| tree | bb6813a857c0c42ba1049be5035fce7f45b99c46 /cypress/e2e | |
| parent | 36fc517d17591c8ea1d5135d9a93c7591e3d1f74 (diff) | |
| download | faker-7e3c92e802614ae5e9f621d9e679dfd6f6d63cf1.tar.xz faker-7e3c92e802614ae5e9f621d9e679dfd6f6d63cf1.zip | |
infra: enable strictNullChecks in tsconfig (#2435)
Diffstat (limited to 'cypress/e2e')
| -rw-r--r-- | cypress/e2e/api.cy.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cypress/e2e/api.cy.ts b/cypress/e2e/api.cy.ts index be61f5df..e87ea856 100644 --- a/cypress/e2e/api.cy.ts +++ b/cypress/e2e/api.cy.ts @@ -34,7 +34,7 @@ describe('API Test', () => { cy.get('.api-group li').each(($el) => { const anchor = $el.find('a'); const text = anchor.text(); - const link = anchor.attr('href').split('#')[0]; + const link = anchor.attr('href')?.split('#')[0] ?? 'MISSING'; if (checked.has(link)) { return; } |
