From f9dd578fd377ff46ee2daa3fdba835ca68394171 Mon Sep 17 00:00:00 2001 From: khalilcodes Date: Wed, 3 Aug 2022 14:35:57 +0400 Subject: [PATCH] [test,#20][s]: add test pages for components --- site/content/test/page-1.md | 7 +++++++ site/content/test/page-2.md | 7 +++++++ templates/default/components/Test.js | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 site/content/test/page-1.md create mode 100644 site/content/test/page-2.md create mode 100644 templates/default/components/Test.js diff --git a/site/content/test/page-1.md b/site/content/test/page-1.md new file mode 100644 index 000000000..04894a2d5 --- /dev/null +++ b/site/content/test/page-1.md @@ -0,0 +1,7 @@ +--- +title: Test import page (working) +--- + +import { Test } from "../components/Test.js" + + \ No newline at end of file diff --git a/site/content/test/page-2.md b/site/content/test/page-2.md new file mode 100644 index 000000000..f34b1cc54 --- /dev/null +++ b/site/content/test/page-2.md @@ -0,0 +1,7 @@ +--- +title: Test import page (not working) +--- + +{/* import { Button } from "../components/Button.js" */} + +{/* */} \ No newline at end of file diff --git a/templates/default/components/Test.js b/templates/default/components/Test.js new file mode 100644 index 000000000..7b1354ea5 --- /dev/null +++ b/templates/default/components/Test.js @@ -0,0 +1,3 @@ +export const Test = () => { + return "This is a component that returns only a string" +} \ No newline at end of file