diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2016-02-13 19:37:55 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2016-02-13 19:37:55 +0300 |
commit | 9c0b8b9e42d3b65be3d3c5914d53788219737b5f (patch) | |
tree | e4fd07ef427fcb4f884c35c967870fd23d44433c /test | |
parent | a3eaf4a4b0098918d3b39dbe705fa587032c5648 (diff) |
Add test for overwriting icons
Diffstat (limited to 'test')
-rwxr-xr-x | test/powerlevel9k.spec | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/powerlevel9k.spec b/test/powerlevel9k.spec index 06f0868e..1a6d3bff 100755 --- a/test/powerlevel9k.spec +++ b/test/powerlevel9k.spec @@ -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 |