tide/tests/_tide_item_go.test.fish
Devansh Sharma 13fa55ef10
Use command rm in tests (#336)
* Update rm to /bin/rm in tests

* Fix check regex in time item test

* Revert "Fix check regex in time item test"

This reverts commit edb871f8ba.

* Update /bin/rm to command rm in tests
2022-08-27 05:22:24 -04:00

19 lines
259 B
Fish

# RUN: %fish %s
function _go
_tide_decolor (_tide_item_go)
end
set -l goDir (mktemp -d)
cd $goDir
mock go version "echo go version go1.16.5 linux/amd64"
set -lx tide_go_icon
_go # CHECK:
touch go.mod
_go # CHECK:  1.16.5
command rm -r $goDir