[ci] yarn format
This commit is contained in:
parent
ee4ad43202
commit
49019aa2d6
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ describe('Config Validation', () => {
|
|||
});
|
||||
|
||||
it('errors when an older markdownOptions format is used', async () => {
|
||||
const configError = await validateConfig({ markdownOptions: { rehypePlugins: ["rehype-autolink-headings"] } }, process.cwd()).catch((err) => err);
|
||||
const configError = await validateConfig({ markdownOptions: { rehypePlugins: ['rehype-autolink-headings'] } }, process.cwd()).catch((err) => err);
|
||||
expect(configError instanceof z.ZodError).to.equal(true);
|
||||
expect(configError.issues[0].message).to.equal("Unrecognized key(s) in object: 'rehypePlugins'")
|
||||
expect(configError.issues[0].message).to.equal("Unrecognized key(s) in object: 'rehypePlugins'");
|
||||
});
|
||||
|
||||
it('A validation error can be formatted correctly', async () => {
|
||||
|
|
Loading…
Reference in a new issue