mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 11:59:48 -05:00
37cb4d3fcb
* feat(server): add landing page Fixes orhun/rustypaste#13 * feat(server): allow using {REPOSITORY} in landing page * fix(server): Get rid of unused import, add line about expiration * chore(fmt): cargo fmt * fix(tests): inject app data for fixing index test * feat(server): redirect to GitHub repository if landing page is not specified * test(fixtures): add fixture test for landing page Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
16 lines
177 B
Bash
Executable file
16 lines
177 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
landing_page="awesome_landing"
|
|
|
|
setup() {
|
|
:;
|
|
}
|
|
|
|
run_test() {
|
|
result=$(curl -s localhost:8000)
|
|
test "$landing_page" = "$result"
|
|
}
|
|
|
|
teardown() {
|
|
:;
|
|
}
|