🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit db8f23aa8db5142276a60a5227a95a28de63558d
Parent: b6e820c57cb8101f56a2c42ef92c19f871690bd7
Author: mcol <mcol@posteo.net>
Date: 2021-11-26 16:30:01 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-11-26 16:30:01 +0000

Fix tests

Some test files were not being checked

Also removes branches from tests - the CI runs on a detached HEAD

test/test.sh Modified

@@ -32,7 +32,9 @@
     "index.html"
     "style.css"
     "static/a_nice_file"
+    "gitserve/index.html"
     "gitserve/commit/0292014748caae952bbc8dd6225680d83c0a5135.html"
+    "gitserve/file/test.templates.html"
     "gitserve/file/test.templates.style.css.html"
 )
 

test/templates/repo/index.html Modified

@@ -10,8 +10,8 @@
 commits: (skipped)
 tree: (skipped)
 tags: (skipped)
-branches: {{ branches }}
-    branches[0].name: {{ branches[0].name }}
+branches: (skipped)
+    branches[0].name: (skipped)
 readme.path: {{ readme.path }}
 license.path: {{ license.path }}
 {% endblock %}

test/templates/repo/file.html Modified

@@ -22,8 +22,8 @@
 commits: (skipped)
 tree: (skipped)
 tags: (skipped)
-branches: {{ branches }}
-    branches[0].name: {{ branches[0].name }}
+branches: (skipped)
+    branches[0].name: (skipped)
 readme.path: {{ readme.path }}
 license.path: {{ license.path }}
 {% endblock %}

test/expected/gitserve/index.html Modified

@@ -4,11 +4,10 @@
 repos: gitserve
 name: gitserve
 description: 🐙 Templated web page generator for your git repositories
-
 commits: (skipped)
 tree: (skipped)
 tags: (skipped)
-branches: master
-    branches[0].name: master
+branches: (skipped)
+    branches[0].name: (skipped)
 readme.path: README.rst
 license.path: LICENSE

test/expected/gitserve/file/test.templates.style.css.html Modified

@@ -17,7 +17,7 @@
 commits: (skipped)
 tree: (skipped)
 tags: (skipped)
-branches: master
-    branches[0].name: master
+branches: (skipped)
+    branches[0].name: (skipped)
 readme.path: README.rst
 license.path: LICENSE

test/expected/gitserve/file/test.templates.html Modified

@@ -17,7 +17,7 @@
 commits: (skipped)
 tree: (skipped)
 tags: (skipped)
-branches: master
-    branches[0].name: master
+branches: (skipped)
+    branches[0].name: (skipped)
 readme.path: README.rst
 license.path: LICENSE