MCPcopy
hub / github.com/github/docs / getPage

Function getPage

tests/unit/page.js:698–704  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

696describe('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 })

Callers

nothing calls this directly

Calls 1

initMethod · 0.80

Tested by

no test coverage detected