You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fisher/test/plugin-unlink.fish

23 lines
387 B
Fish

set -l path $DIRNAME/.t-$TESTNAME-(random)
function -S setup
mkdir -p $path
echo "function foo; end" > $path/foo.fish
source $path/foo.fish
__fisher_plugin_unlink $path/foo.fish foo
end
function -S teardown
rm -rf $path
end
test "$TESTNAME - Delete / Unlink file"
! -e $path/foo.fish
end
test "$TESTNAME - Erase function by name"
-z (functions foo)
end