Skip to content
Snippets Groups Projects
Commit 668849a9 authored by Roman Inflianskas's avatar Roman Inflianskas Committed by Bruno Pinto
Browse files

[dpaste] Fix tests

parent 4cb65391
Branches
No related merge requests found
......@@ -10,10 +10,13 @@ function suite_dpaste
function test_dpaste_parse_expires
assert_equal text (__dpaste_parse_expires text)
assert_equal "https://dpaste.de/api/?format=url" $__dpaste_send_url
set -g __dpaste_send_url $dpaste_url
assert_equal text (__dpaste_parse_expires -t never text)
assert_equal "https://dpaste.de/api/?format=url&expires=never" $__dpaste_send_url
assert_equal text (__dpaste_parse_expires -t hour 3600)
assert_equal "https://dpaste.de/api/?format=url&expires=" $__dpaste_send_url
set -g __dpaste_send_url $dpaste_url
assert_equal text (__dpaste_parse_expires -t hour text)
assert_equal "https://dpaste.de/api/?format=url&expires=3600" $__dpaste_send_url
set -g __dpaste_send_url $dpaste_url
end
end
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment