Skip to content

Commit

Permalink
[test,#20][s]: add test pages for components
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilcodes committed Aug 3, 2022
1 parent 605bf53 commit f9dd578
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions site/content/test/page-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Test import page (working)
---

import { Test } from "../components/Test.js"

<Test />
7 changes: 7 additions & 0 deletions site/content/test/page-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Test import page (not working)
---

{/* import { Button } from "../components/Button.js" */}

{/* <Button>Button component</Button> */}
3 changes: 3 additions & 0 deletions templates/default/components/Test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const Test = () => {
return "This is a component that returns only a string"
}

0 comments on commit f9dd578

Please sign in to comment.