mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-22 04:19:47 -05:00
19 lines
307 B
Bash
Executable file
19 lines
307 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
url="https://orhun.dev/"
|
|
|
|
setup() {
|
|
:;
|
|
}
|
|
|
|
run_test() {
|
|
curl -s -F "url=$url" localhost:8000 > /dev/null
|
|
test "$url" = "$(cat upload/url/url)"
|
|
|
|
result=$(curl -s -F "url=invalidurl" localhost:8000)
|
|
test "relative URL without a base" = "$result"
|
|
}
|
|
|
|
teardown() {
|
|
rm -r upload
|
|
}
|