Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
jescalan committed Aug 26, 2020
1 parent b9a9ad8 commit 17c425d
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions __tests__/fixtures/src-folder/layouts/docs-page.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import { frontMatter as introData } from '../src/pages/docs/intro.mdx'
import { frontMatter as advancedData } from '../src/pages/docs/advanced.mdx'

export default frontMatter => {
return function docsPageLayout({ children }) {
return (
<>
<p>LAYOUT TEMPLATE</p>
<h1>{frontMatter.title}</h1>
<p>
Other docs: {introData.title}, {advancedData.title}
</p>
{children}
</>
)
}
export default function docsPageLayout({ children, frontMatter }) {
return (
<>
<p>LAYOUT TEMPLATE</p>
<h1>{frontMatter.title}</h1>
<p>
Other docs: {introData.title}, {advancedData.title}
</p>
{children}
</>
)
}

0 comments on commit 17c425d

Please sign in to comment.