]> Nishi Git Mirror - aya.git/commitdiff
Fix tests (#7)
authorJames Mills <james@mills.io>
Sun, 12 Mar 2023 03:44:17 +0000 (03:44 +0000)
committerJames Mills <james@mills.io>
Sun, 12 Mar 2023 03:44:17 +0000 (03:44 +0000)
Fixes #6

Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com>
Reviewed-on: https://git.mills.io/prologic/zs/pulls/7

19 files changed:
testdata/blog/.test/about.html [deleted file]
testdata/blog/.test/index.html [deleted file]
testdata/blog/.test/posts/hello.html [deleted file]
testdata/blog/.test/posts/update.html [deleted file]
testdata/blog/.test/styles.css [deleted file]
testdata/blog/.zs/layout.amber [deleted file]
testdata/blog/about.md [deleted file]
testdata/blog/index.amber [deleted file]
testdata/blog/posts/hello.md [deleted file]
testdata/blog/posts/update.md [deleted file]
testdata/blog/styles.gcss [deleted file]
testdata/page/.test/index.html [deleted file]
testdata/page/index.html [deleted file]
testdata/simple/.test/index.html [new file with mode: 0644]
testdata/simple/index.md [new file with mode: 0644]
testdata/sugar/.test/index.html [deleted file]
testdata/sugar/.test/styles.css [deleted file]
testdata/sugar/index.amber [deleted file]
testdata/sugar/styles.gcss [deleted file]

diff --git a/testdata/blog/.test/about.html b/testdata/blog/.test/about.html
deleted file mode 100644 (file)
index 2ad8b67..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
-       <head>
-               <title>About myself</title>
-               <link href="styles.css" rel="stylesheet" type="text/css" />
-       </head>
-       <body><h1>About myself</h1>
-
-<p>Hi all. This is a brief description of who I am.</p>
-</body>
-</html>
diff --git a/testdata/blog/.test/index.html b/testdata/blog/.test/index.html
deleted file mode 100644 (file)
index 30af02e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<html>
-       <head>
-               <title>My blog</title>
-               <link href="styles.css" rel="stylesheet" type="text/css" />
-       </head>
-       <body>
-               <p>Here goes list of posts</p>
-               <ul>
-                       <li>
-                               <a href="/posts/hello.html">First post</a>
-                       </li>
-                       <li>
-                               <a href="/posts/update.html">Second post</a>
-                       </li>
-               </ul>
-       </body>
-</html>
diff --git a/testdata/blog/.test/posts/hello.html b/testdata/blog/.test/posts/hello.html
deleted file mode 100644 (file)
index a3293d4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
-       <head>
-               <title>First post</title>
-               <link href="styles.css" rel="stylesheet" type="text/css" />
-       </head>
-       <body><h1>First post</h1>
-
-<p>This is my first post</p>
-</body>
-</html>
diff --git a/testdata/blog/.test/posts/update.html b/testdata/blog/.test/posts/update.html
deleted file mode 100644 (file)
index 58ff440..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
-       <head>
-               <title>Second post</title>
-               <link href="styles.css" rel="stylesheet" type="text/css" />
-       </head>
-       <body><h1>Second post</h1>
-
-<p>This is my second post</p>
-</body>
-</html>
diff --git a/testdata/blog/.test/styles.css b/testdata/blog/.test/styles.css
deleted file mode 100644 (file)
index 25d5b6f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-html{margin:0;padding:0;box-sizing:border-box;}body{font-size:16pt;}
\ No newline at end of file
diff --git a/testdata/blog/.zs/layout.amber b/testdata/blog/.zs/layout.amber
deleted file mode 100644 (file)
index 5877c65..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-html
-       head
-               title #{title}
-               link[href="styles.css"][rel="stylesheet"][type="text/css"]
-       body
-               #{unescaped(content)}
diff --git a/testdata/blog/about.md b/testdata/blog/about.md
deleted file mode 100644 (file)
index 858efe8..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-title: About myself
-date: 28-08-2015
----
-
-# {{title}}
-
-Hi all. This is a brief description of who I am.
diff --git a/testdata/blog/index.amber b/testdata/blog/index.amber
deleted file mode 100644 (file)
index ab0f0dd..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-html
-       head
-               title My blog
-               link[href="styles.css"][rel="stylesheet"][type="text/css"]
-       body
-               p Here goes list of posts
-               ul
-                       li
-                               a[href="/posts/hello.html"] First post
-                       li
-                               a[href="/posts/update.html"] Second post
-
diff --git a/testdata/blog/posts/hello.md b/testdata/blog/posts/hello.md
deleted file mode 100644 (file)
index f4d9230..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-title: First post
-date: 28-08-2015
----
-
-# {{title}}
-
-This is my first post
-
diff --git a/testdata/blog/posts/update.md b/testdata/blog/posts/update.md
deleted file mode 100644 (file)
index 1d04487..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-title: Second post
-date: 29-08-2015
----
-
-# {{title}}
-
-This is my second post
-
diff --git a/testdata/blog/styles.gcss b/testdata/blog/styles.gcss
deleted file mode 100644 (file)
index 5082b95..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-html
-  margin: 0
-  padding: 0
-  box-sizing: border-box
-
-body
-  font-size: 16pt
diff --git a/testdata/page/.test/index.html b/testdata/page/.test/index.html
deleted file mode 100644 (file)
index 06a269e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
-       <body>
-               <h1>Hello</h1>
-       </body>
-</html>
diff --git a/testdata/page/index.html b/testdata/page/index.html
deleted file mode 100644 (file)
index b69f19c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
-       <body>
-               <h1>{{ printf Hello }}</h1>
-       </body>
-</html>
diff --git a/testdata/simple/.test/index.html b/testdata/simple/.test/index.html
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/testdata/simple/index.md b/testdata/simple/index.md
new file mode 100644 (file)
index 0000000..4331622
--- /dev/null
@@ -0,0 +1,3 @@
+# Simple
+
+Simple page
diff --git a/testdata/sugar/.test/index.html b/testdata/sugar/.test/index.html
deleted file mode 100644 (file)
index f9cd4d7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
-       <body>
-               <p>Hello world</p>
-       </body>
-</html>
diff --git a/testdata/sugar/.test/styles.css b/testdata/sugar/.test/styles.css
deleted file mode 100644 (file)
index 42f29d4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-body{font:100% Helvetica, sans-serif;color:blue;}
\ No newline at end of file
diff --git a/testdata/sugar/index.amber b/testdata/sugar/index.amber
deleted file mode 100644 (file)
index ec9948c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-html
-       body
-               p Hello world
diff --git a/testdata/sugar/styles.gcss b/testdata/sugar/styles.gcss
deleted file mode 100644 (file)
index b2b4a29..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-$base-font: Helvetica, sans-serif
-$main-color: blue
-
-body
-  font: 100% $base-font
-  color: $main-color