From 94e4b7a5117a727ef4f131246c8755409beb3c9c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 17 Aug 2021 17:38:27 -0300 Subject: tests/: Move refs.html to sub-directory --- tests/integration.sh | 6 +- tests/resources/assets/refs.html | 122 ---------------------------------- tests/resources/assets/repo/logo.svg | 62 +++++++++++++++++ tests/resources/assets/repo/refs.html | 122 ++++++++++++++++++++++++++++++++++ tests/resources/assets/repo/style.css | 71 ++++++++++++++++++++ 5 files changed, 258 insertions(+), 125 deletions(-) delete mode 100644 tests/resources/assets/refs.html create mode 100644 tests/resources/assets/repo/logo.svg create mode 100644 tests/resources/assets/repo/refs.html create mode 100644 tests/resources/assets/repo/style.css diff --git a/tests/integration.sh b/tests/integration.sh index 27a2dfc..58dde94 100755 --- a/tests/integration.sh +++ b/tests/integration.sh @@ -47,9 +47,9 @@ test_repo_generation() { assert_empty_stderr assert_status 0 - assert_file tests/resources/assets/style.css "$DIR/style.css" - assert_file tests/resources/assets/logo.svg "$DIR/logo.svg" - assert_file tests/resources/assets/refs.html "$DIR/refs.html" + assert_file tests/resources/assets/repo/style.css "$DIR/style.css" + assert_file tests/resources/assets/repo/logo.svg "$DIR/logo.svg" + assert_file tests/resources/assets/repo/refs.html "$DIR/refs.html" test_ok } diff --git a/tests/resources/assets/refs.html b/tests/resources/assets/refs.html deleted file mode 100644 index 3610ef5..0000000 --- a/tests/resources/assets/refs.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - repo-1 - - -
-
- - - -
-

- repo-1 -

-

- Submodule repository for gistatic project tests -

- - git clone https://example.com/ - -
-
- -
-
-
- - - - - - - - - - - - - - - - - -
- Branch - - Commit message - - Author - - Date -
- - main - - - - description: Add - - - EuAndreh - - 2021-07-31 19:29 -
- - - - - - - - - - - - -
- Tag - - Commit message - - Download - - Author - - Date -
-
- - - diff --git a/tests/resources/assets/repo/logo.svg b/tests/resources/assets/repo/logo.svg new file mode 100644 index 0000000..ce566b2 --- /dev/null +++ b/tests/resources/assets/repo/logo.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/resources/assets/repo/refs.html b/tests/resources/assets/repo/refs.html new file mode 100644 index 0000000..3610ef5 --- /dev/null +++ b/tests/resources/assets/repo/refs.html @@ -0,0 +1,122 @@ + + + + + + + + + + + repo-1 + + +
+
+ + + +
+

+ repo-1 +

+

+ Submodule repository for gistatic project tests +

+ + git clone https://example.com/ + +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + +
+ Branch + + Commit message + + Author + + Date +
+ + main + + + + description: Add + + + EuAndreh + + 2021-07-31 19:29 +
+ + + + + + + + + + + + +
+ Tag + + Commit message + + Download + + Author + + Date +
+
+ + + diff --git a/tests/resources/assets/repo/style.css b/tests/resources/assets/repo/style.css new file mode 100644 index 0000000..f2cad9d --- /dev/null +++ b/tests/resources/assets/repo/style.css @@ -0,0 +1,71 @@ +body { + font-family: monospace; + max-width: 1100px; + margin: 0 auto 0 auto; +} + +.logo { + height: 6em; + width: 6em; +} + +.header-horizontal-grouping { + display: flex; + align-items: center; + margin-top: 1em; + margin-bottom: 1em; +} + +.header-description { + margin-left: 2em; +} + +nav { + margin-top: 2em; +} + +nav ul { + display: flex; + list-style-type: none; + margin-bottom: 0; +} + +nav li { + margin-left: 10px; +} + +nav a { + padding: 2px 8px 0px 8px; + color: black; +} + +.selected-nav-item { + background-color: hsl(0, 0%, 87%); +} + +hr { + margin-top: 0; + border: 0; + border-top: 3px solid hsl(0, 0%, 87%); +} + +table { + margin: 2em auto; +} + +th { + padding-bottom: 1em; +} + +tbody tr:hover { + background-color: hsl(0, 0%, 93%); +} + +td { + padding-left: 1em; + padding-right: 1em; +} + +footer { + text-align: center; +} -- cgit v1.2.3