Check for link target

This commit is contained in:
Nils Winkler
2017-09-15 08:10:14 +02:00
parent 5f3627b9b7
commit e705e6c60f

View File

@@ -55,12 +55,7 @@ function local_setup {
assert_line "0" 'node enabled with priority 250.'
assert [ -L "$BASH_IT/enabled/250---node.plugin.bash" ]
# TODO Check for the link target - readlink
# target_path=$HOME/Code/slate/.slate.js
#
# if [ "`readlink $HOME/.slate.js`" -ef "$target_path" ]; then
# rm -rf "$HOME/.slate.js"
# fi
assert_equal "../plugins/available/node.plugin.bash" "`readlink $BASH_IT/enabled/250---node.plugin.bash`"
}
@test "bash-it: enable the node plugin through the bash-it function" {