mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-22 23:21:57 +00:00
Add test for overwriting icons
This commit is contained in:
parent
a3eaf4a4b0
commit
9c0b8b9e42
1 changed files with 10 additions and 0 deletions
|
@ -81,4 +81,14 @@ function testColoringOfVisualIdentifiersDoesNotOverwriteColoringOfSegment() {
|
|||
unset POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND
|
||||
}
|
||||
|
||||
function testOverwritingIconsWork() {
|
||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir)
|
||||
POWERLEVEL9K_HOME_SUB_ICON='icon-here'
|
||||
|
||||
assertEquals "%K{blue} %F{black%}icon-here%f %F{black}%~ %k%F{blue}%f " "$(build_left_prompt)"
|
||||
|
||||
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
||||
unset POWERLEVEL9K_DIR_HOME_SUB_ICON
|
||||
}
|
||||
|
||||
source shunit2/source/2.1/src/shunit2
|
||||
|
|
Loading…
Reference in a new issue