From 0f4623afae54a9f540037a6e22c3a32692c86c98 Mon Sep 17 00:00:00 2001 From: James Mills Date: Sun, 12 Mar 2023 03:44:17 +0000 Subject: [PATCH] Fix tests (#7) Fixes #6 Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com> Reviewed-on: https://git.mills.io/prologic/zs/pulls/7 --- testdata/blog/.test/about.html | 10 ---------- testdata/blog/.test/index.html | 17 ----------------- testdata/blog/.test/posts/hello.html | 10 ---------- testdata/blog/.test/posts/update.html | 10 ---------- testdata/blog/.test/styles.css | 1 - testdata/blog/.zs/layout.amber | 6 ------ testdata/blog/about.md | 7 ------- testdata/blog/index.amber | 12 ------------ testdata/blog/posts/hello.md | 8 -------- testdata/blog/posts/update.md | 8 -------- testdata/blog/styles.gcss | 7 ------- testdata/page/.test/index.html | 5 ----- testdata/page/index.html | 5 ----- testdata/simple/.test/index.html | 0 testdata/simple/index.md | 3 +++ testdata/sugar/.test/index.html | 5 ----- testdata/sugar/.test/styles.css | 1 - testdata/sugar/index.amber | 3 --- testdata/sugar/styles.gcss | 6 ------ 19 files changed, 3 insertions(+), 121 deletions(-) delete mode 100644 testdata/blog/.test/about.html delete mode 100644 testdata/blog/.test/index.html delete mode 100644 testdata/blog/.test/posts/hello.html delete mode 100644 testdata/blog/.test/posts/update.html delete mode 100644 testdata/blog/.test/styles.css delete mode 100644 testdata/blog/.zs/layout.amber delete mode 100644 testdata/blog/about.md delete mode 100644 testdata/blog/index.amber delete mode 100644 testdata/blog/posts/hello.md delete mode 100644 testdata/blog/posts/update.md delete mode 100644 testdata/blog/styles.gcss delete mode 100644 testdata/page/.test/index.html delete mode 100644 testdata/page/index.html create mode 100644 testdata/simple/.test/index.html create mode 100644 testdata/simple/index.md delete mode 100644 testdata/sugar/.test/index.html delete mode 100644 testdata/sugar/.test/styles.css delete mode 100644 testdata/sugar/index.amber delete mode 100644 testdata/sugar/styles.gcss diff --git a/testdata/blog/.test/about.html b/testdata/blog/.test/about.html deleted file mode 100644 index 2ad8b67..0000000 --- a/testdata/blog/.test/about.html +++ /dev/null @@ -1,10 +0,0 @@ - - - About myself - - -

About myself

- -

Hi all. This is a brief description of who I am.

- - diff --git a/testdata/blog/.test/index.html b/testdata/blog/.test/index.html deleted file mode 100644 index 30af02e..0000000 --- a/testdata/blog/.test/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - My blog - - - -

Here goes list of posts

- - - diff --git a/testdata/blog/.test/posts/hello.html b/testdata/blog/.test/posts/hello.html deleted file mode 100644 index a3293d4..0000000 --- a/testdata/blog/.test/posts/hello.html +++ /dev/null @@ -1,10 +0,0 @@ - - - First post - - -

First post

- -

This is my first post

- - diff --git a/testdata/blog/.test/posts/update.html b/testdata/blog/.test/posts/update.html deleted file mode 100644 index 58ff440..0000000 --- a/testdata/blog/.test/posts/update.html +++ /dev/null @@ -1,10 +0,0 @@ - - - Second post - - -

Second post

- -

This is my second post

- - diff --git a/testdata/blog/.test/styles.css b/testdata/blog/.test/styles.css deleted file mode 100644 index 25d5b6f..0000000 --- a/testdata/blog/.test/styles.css +++ /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 index 5877c65..0000000 --- a/testdata/blog/.zs/layout.amber +++ /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 index 858efe8..0000000 --- a/testdata/blog/about.md +++ /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 index ab0f0dd..0000000 --- a/testdata/blog/index.amber +++ /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 index f4d9230..0000000 --- a/testdata/blog/posts/hello.md +++ /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 index 1d04487..0000000 --- a/testdata/blog/posts/update.md +++ /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 index 5082b95..0000000 --- a/testdata/blog/styles.gcss +++ /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 index 06a269e..0000000 --- a/testdata/page/.test/index.html +++ /dev/null @@ -1,5 +0,0 @@ - - -

Hello

- - diff --git a/testdata/page/index.html b/testdata/page/index.html deleted file mode 100644 index b69f19c..0000000 --- a/testdata/page/index.html +++ /dev/null @@ -1,5 +0,0 @@ - - -

{{ printf Hello }}

- - diff --git a/testdata/simple/.test/index.html b/testdata/simple/.test/index.html new file mode 100644 index 0000000..e69de29 diff --git a/testdata/simple/index.md b/testdata/simple/index.md new file mode 100644 index 0000000..4331622 --- /dev/null +++ b/testdata/simple/index.md @@ -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 index f9cd4d7..0000000 --- a/testdata/sugar/.test/index.html +++ /dev/null @@ -1,5 +0,0 @@ - - -

Hello world

- - diff --git a/testdata/sugar/.test/styles.css b/testdata/sugar/.test/styles.css deleted file mode 100644 index 42f29d4..0000000 --- a/testdata/sugar/.test/styles.css +++ /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 index ec9948c..0000000 --- a/testdata/sugar/index.amber +++ /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 index b2b4a29..0000000 --- a/testdata/sugar/styles.gcss +++ /dev/null @@ -1,6 +0,0 @@ -$base-font: Helvetica, sans-serif -$main-color: blue - -body - font: 100% $base-font - color: $main-color