chore: spell-check test files ()

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
packages/docusaurus-plugin-content-docs/src/__tests__

View file

@ -502,14 +502,14 @@ describe('simple site', () => {
const docs = await readVersionDocs(versionsMetadata[0], options);
docs.push(
createFakeDocFile({
source: 'hehe',
source: 'bad',
frontMatter: {pagination_prev: 'nonexistent'},
}),
);
await expect(
defaultTestUtils.generateNavigation(docs),
).rejects.toThrowErrorMatchingInlineSnapshot(
`"Error when loading hehe in .: the pagination_prev front matter points to a non-existent ID nonexistent."`,
`"Error when loading bad in .: the pagination_prev front matter points to a non-existent ID nonexistent."`,
);
});
});