mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-20 22:31:57 +00:00
Update unit tests for fixing RPROMPT icons cut off
This commit is contained in:
parent
877ef61773
commit
24bbbfc9bd
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ function testLaravelVersionSegment() {
|
||||||
POWERLEVEL9K_LARAVEL_ICON='x'
|
POWERLEVEL9K_LARAVEL_ICON='x'
|
||||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(laravel_version)
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(laravel_version)
|
||||||
|
|
||||||
assertEquals "%K{001} %F{white%}x %f%F{white}5.4.23 %k%F{maroon}%f " "$(build_left_prompt)"
|
assertEquals "%K{001} %F{white%}x %F{white}5.4.23 %k%F{maroon}%f " "$(build_left_prompt)"
|
||||||
|
|
||||||
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
||||||
unset POWERLEVEL9K_LARAVEL_ICON
|
unset POWERLEVEL9K_LARAVEL_ICON
|
||||||
|
|
|
@ -32,7 +32,7 @@ function testRust() {
|
||||||
mockRust
|
mockRust
|
||||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(rust_version)
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(rust_version)
|
||||||
|
|
||||||
assertEquals "%K{208} %F{black%}Rust %f%F{black}0.4.1a-alpha %k%F{darkorange}%f " "$(build_left_prompt)"
|
assertEquals "%K{208} %F{black%}Rust %F{black}0.4.1a-alpha %k%F{darkorange}%f " "$(build_left_prompt)"
|
||||||
|
|
||||||
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue