Skip to content

Commit

Permalink
Fix Early Access tests (github#16749)
Browse files Browse the repository at this point in the history
* fix early access tests

* Update lint-files.js

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
  • Loading branch information
sarahs and heiskr authored Dec 3, 2020
1 parent 25eeefb commit c0b7195
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion tests/content/lint-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const oldExtendedMarkdownErrorText = 'Found extended markdown tags with the old
describe('lint-files', () => {
const mdWalkOptions = {
globs: ['**/*.md'],
ignore: ['**/README.md', 'early-access'],
ignore: ['**/README.md'],
directories: false,
includeBasePath: true
}
Expand Down Expand Up @@ -223,6 +223,14 @@ describe('lint-files', () => {
if (match === '[Contribution guidelines for this project](docs/CONTRIBUTING.md)') {
return false
}
} else if (markdownRelPath === 'content/early-access/github/enforcing-best-practices-with-github-policies/constraints.md') {
if (match === '[a-z]([a-z]|-)') {
return false
}
} else if (markdownRelPath === 'content/early-access/github/enforcing-best-practices-with-github-policies/overview.md') {
if (match === '[A-Z]([a-z]|-)') {
return false
}
}
return true
})
Expand Down
6 changes: 4 additions & 2 deletions tests/meta/repository-references.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,18 @@ describe('check for repository references', () => {
const filenames = walkSync(process.cwd(), {
directories: false,
ignore: [
'.algolia-cache',
'.git',
'dist',
'node_modules',
'translations',
'content/early-access',
'lib/rest/**/*.json',
'lib/webhooks/**/*.json',
'ownership.yaml',
'docs/index.yaml',
'lib/excluded-links.js'
'lib/excluded-links.js',
'content/early-access',
'data/early-access'
]
})

Expand Down

0 comments on commit c0b7195

Please sign in to comment.