tide/tests/_tide_item_terraform.test.fish
2022-09-05 12:56:50 -04:00

21 lines
355 B
Fish

# RUN: %fish %s
_tide_parent_dirs
function _terraform
_tide_decolor (_tide_item_terraform)
end
set -l terraformDir (mktemp -d)
cd $terraformDir
mock terraform "workspace show" "echo default"
_terraform # CHECK:
mkdir .terraform
_terraform # CHECK:
mock terraform "workspace show" "echo test"
_terraform # CHECK: test
command rm -r $terraformDir