tide/tests/_tide_item_zig.test.fish
Julian V 7f9d24de00
Add Zig item (#452)
* Add Zig item

* Add zig to removable items list

---------

Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
2023-10-06 18:23:22 -07:00

23 lines
343 B
Fish

# RUN: %fish %s
_tide_parent_dirs
function _zig
_tide_decolor (_tide_item_zig)
end
set -l zigDir (mktemp -d)
cd $zigDir
mock zig version "echo 0.11.0"
set -lx tide_zig_icon
_zig # CHECK:
touch build.zig
_zig # CHECK:  0.11.0
mock zig version "echo 0.12.0-dev.789+e6590fea1"
_zig # CHECK:  0.12.0-dev
command rm -r $zigDir