mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
Fix tests
This commit is contained in:
parent
41644062c4
commit
3f7ed96687
@ -1,3 +1,3 @@
|
||||
function _tide_decolor -a text
|
||||
string replace --all --regex '\e(\[[\d;]*|\(B\e\[)m' '' "$text"
|
||||
function _tide_decolor
|
||||
string replace --all --regex '\e(\[[\d;]*|\(B\e\[)m' '' "$argv"
|
||||
end
|
@ -1,10 +0,0 @@
|
||||
@mesg '---------count_left_prompt_height---------'
|
||||
|
||||
function _count_left_prompt_height
|
||||
set -lx tide_left_prompt_items $argv
|
||||
_tide_count_left_prompt_height
|
||||
printf '%s' $_tide_left_prompt_height
|
||||
end
|
||||
|
||||
@test 'Single line' (_count_left_prompt_height pwd git_prompt prompt_char) -eq 1
|
||||
@test 'Double line' (_count_left_prompt_height pwd git_prompt newline prompt_char) -eq 2
|
Loading…
Reference in New Issue
Block a user