Skip to content

Commit c0b7195

Browse files
sarahsheiskr
andauthored
Fix Early Access tests (#16749)
* fix early access tests * Update lint-files.js Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
1 parent 25eeefb commit c0b7195

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

tests/content/lint-files.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const oldExtendedMarkdownErrorText = 'Found extended markdown tags with the old
148148
describe('lint-files', () => {
149149
const mdWalkOptions = {
150150
globs: ['**/*.md'],
151-
ignore: ['**/README.md', 'early-access'],
151+
ignore: ['**/README.md'],
152152
directories: false,
153153
includeBasePath: true
154154
}
@@ -223,6 +223,14 @@ describe('lint-files', () => {
223223
if (match === '[Contribution guidelines for this project](docs/CONTRIBUTING.md)') {
224224
return false
225225
}
226+
} else if (markdownRelPath === 'content/early-access/github/enforcing-best-practices-with-github-policies/constraints.md') {
227+
if (match === '[a-z]([a-z]|-)') {
228+
return false
229+
}
230+
} else if (markdownRelPath === 'content/early-access/github/enforcing-best-practices-with-github-policies/overview.md') {
231+
if (match === '[A-Z]([a-z]|-)') {
232+
return false
233+
}
226234
}
227235
return true
228236
})

tests/meta/repository-references.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@ describe('check for repository references', () => {
3737
const filenames = walkSync(process.cwd(), {
3838
directories: false,
3939
ignore: [
40+
'.algolia-cache',
4041
'.git',
4142
'dist',
4243
'node_modules',
4344
'translations',
44-
'content/early-access',
4545
'lib/rest/**/*.json',
4646
'lib/webhooks/**/*.json',
4747
'ownership.yaml',
4848
'docs/index.yaml',
49-
'lib/excluded-links.js'
49+
'lib/excluded-links.js',
50+
'content/early-access',
51+
'data/early-access'
5052
]
5153
})
5254

0 commit comments

Comments
 (0)