mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
set GO_ICON manually in test
This commit is contained in:
parent
a6887eb165
commit
f81ecc11f6
1 changed files with 3 additions and 2 deletions
|
@ -35,13 +35,14 @@ function mockGoEmptyGopath() {
|
|||
|
||||
function testGo() {
|
||||
alias go=mockGo
|
||||
POWERLEVEL9K_GO_ICON=""
|
||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(go_version)
|
||||
|
||||
PWD="$HOME/go/src/github.com/bhilburn/powerlevel9k"
|
||||
|
||||
assertEquals "%K{green} %F{255}go1.5.3 %k%F{green}%f " "$(build_left_prompt)"
|
||||
|
||||
assertEquals "%K{green} %F{255%}%f %F{255}go1.5.3 %k%F{green}%f " "$(build_left_prompt)"
|
||||
|
||||
unset POWERLEVEL9K_GO_ICON
|
||||
unset PWD
|
||||
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
||||
unalias go
|
||||
|
|
Loading…
Reference in a new issue