Improve tests by making use of local variables

This commit is contained in:
Dominik Ritter 2018-07-24 16:24:33 +02:00
commit 4972f0b8eb
8 changed files with 207 additions and 281 deletions

View file

@ -17,7 +17,6 @@ function testDetectVirtSegmentPrintsNothingIfSystemdIsNotAvailable() {
local POWERLEVEL9K_CUSTOM_WORLD='echo world'
alias systemd-detect-virt="novirt"
assertEquals "%K{white} %F{black}world %k%F{white}%f " "$(build_left_prompt)"
unalias systemd-detect-virt