tide/tests/_tide_item_crystal.test.fish

25 lines
403 B
Fish
Raw Normal View History

# RUN: %fish %s
2022-09-05 19:56:50 +03:00
_tide_parent_dirs
function _crystal
_tide_decolor (_tide_item_crystal)
end
set -l crystal_directory (mktemp -d)
cd $crystal_directory
mock crystal --version "echo 'Crystal 1.5.0 (2022-07-06)
LLVM: 14.0.6
Default target: aarch64-apple-darwin21.5.0'"
set -lx tide_crystal_icon
_crystal # CHECK:
touch shard.yml
_crystal # CHECK: ⬢ 1.5.0
command rm -r $crystal_directory