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/key-bindings-enable.fish

25 lines
660 B
Fish

set -l path $DIRNAME/.t-$TESTNAME-(random)
set -l fixtures $DIRNAME/fixtures/key-bindings/update
function -S setup
mkdir -p $path
set -g fisher_binds $path/key_bindings.fish
__fisher_key_bindings_enable \
norf $path/norf/norf.fish \
< $fixtures/fish_user_key_bindings_function.fish
end
function -S teardown
rm -rf $path
end
test "$TESTNAME - Create fish_user_key_bindings calling to __fisher_key_bindings"
(functions fish_user_key_bindings | xargs) = (cat $path/norf/norf.fish | xargs)
end
test "$TESTNAME - Add plugin bindingss to \$fisher_binds"
(cat $fisher_binds | xargs) = "##norf## foo bar baz ##norf##"
end