mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
[dpaste] Fix tests
This commit is contained in:
parent
4cb6539197
commit
668849a9c3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user