chore: spell-check test files (#6903)

This commit is contained in:
Joshua Chen 2022-03-12 15:24:56 +08:00 committed by GitHub
parent f6baaa6b75
commit 76cb012209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 184 additions and 155 deletions

View file

@ -167,11 +167,11 @@ describe('getSlug', () => {
expect(
getSlug({
baseID: 'any',
source: '@site/docs/unslashedDir/doc.md',
sourceDirName: 'unslashedDir',
source: '@site/docs/nonSlashedDir/doc.md',
sourceDirName: 'nonSlashedDir',
frontMatterSlug: 'abc/def',
}),
).toBe('/unslashedDir/abc/def');
).toBe('/nonSlashedDir/abc/def');
expect(
getSlug({
baseID: 'any',
@ -207,7 +207,7 @@ describe('getSlug', () => {
expect(
getSlug({
baseID: 'any',
source: '@site/docs/dir/subdirdoc.md',
source: '@site/docs/dir/subdirDoc.md',
sourceDirName: '/dir/subdir',
frontMatterSlug: '../../../../../abc/../def',
}),