()
| 696 | describe('catches errors thrown in Page class', () => { |
| 697 | test('frontmatter parsing error', async () => { |
| 698 | async function getPage() { |
| 699 | return await Page.init({ |
| 700 | relativePath: 'page-with-frontmatter-error.md', |
| 701 | basePath: path.join(__dirname, '../fixtures'), |
| 702 | languageCode: 'en', |
| 703 | }) |
| 704 | } |
| 705 | |
| 706 | await expect(getPage).rejects.toThrow(FrontmatterErrorsError) |
| 707 | }) |