Skip to content

Commit 1ea595e

Browse files
committed
skip the releases page in linter tests
1 parent 4a07468 commit 1ea595e

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

tests/content/lint-files.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ describe('lint markdown content', () => {
399399

400400
// Filter out some very specific false positive matches
401401
const matches = initialMatches.filter(match => {
402-
if (markdownRelPath === 'content/admin/enterprise-management/migrating-from-github-enterprise-1110x-to-2123.md') {
402+
if (markdownRelPath === 'content/admin/enterprise-management/migrating-from-github-enterprise-1110x-to-2123.md' ||
403+
markdownRelPath === 'content/admin/all-releases.md') {
403404
return false
404405
}
405406
return true
@@ -410,7 +411,16 @@ describe('lint markdown content', () => {
410411
})
411412

412413
test('URLs must not contain a hard-coded domain name', async () => {
413-
const matches = (content.match(domainLinkRegex) || [])
414+
const initialMatches = (content.match(domainLinkRegex) || [])
415+
416+
// Filter out some very specific false positive matches
417+
const matches = initialMatches.filter(match => {
418+
if (markdownRelPath === 'content/admin/all-releases.md') {
419+
return false
420+
}
421+
return true
422+
})
423+
414424
const errorMessage = formatLinkError(domainLinkErrorText, matches)
415425
expect(matches.length, errorMessage).toBe(0)
416426
})

0 commit comments

Comments
 (0)