rustypaste-pretty/fixtures/test-server-landing-page/test.sh
TheTechRobo 37cb4d3fcb
feat(server): add landing page (#26)
* 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>
2022-10-03 21:27:35 +00:00

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() {
:;
}