aboutsummaryrefslogtreecommitdiff
path: root/test/segments/context.spec
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-08-08 02:54:55 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-08-08 03:03:03 +0300
commitc7e543ff2382036b7ddc97af700164aa401f069f (patch)
tree0802a9d9b8415a4bfa37129d4a9a73d4b4441a88 /test/segments/context.spec
parente35f7a0c488a128354caae176cc2fc8df1b129c7 (diff)
parent424d41761d819e127309af0c31837b91f2bb24a1 (diff)
Merge branch 'fix_colors' into prepare_066
Diffstat (limited to 'test/segments/context.spec')
-rwxr-xr-xtest/segments/context.spec14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/segments/context.spec b/test/segments/context.spec
index 49795668..23da0f2d 100755
--- a/test/segments/context.spec
+++ b/test/segments/context.spec
@@ -29,7 +29,7 @@ function testContextSegmentDoesNotGetRenderedWithDefaultUser() {
# Load Powerlevel9k
source powerlevel9k.zsh-theme
- assertEquals "%K{white} %F{black}world %k%F{white}%f " "$(build_left_prompt)"
+ assertEquals "%K{015} %F{000}world %k%F{015}%f " "$(build_left_prompt)"
}
function testContextSegmentDoesGetRenderedWhenSshConnectionIsOpen() {
@@ -43,7 +43,7 @@ function testContextSegmentDoesGetRenderedWhenSshConnectionIsOpen() {
# Load Powerlevel9k
source powerlevel9k.zsh-theme
- assertEquals "%K{black} %F{yellow}%n@%m %k%F{black}%f " "$(build_left_prompt)"
+ assertEquals "%K{000} %F{011}%n@%m %k%F{000}%f " "$(build_left_prompt)"
unfunction sudo
}
@@ -58,7 +58,7 @@ function testContextSegmentWithForeignUser() {
# Load Powerlevel9k
source powerlevel9k.zsh-theme
- assertEquals "%K{black} %F{yellow}%n@%m %k%F{black}%f " "$(build_left_prompt)"
+ assertEquals "%K{000} %F{011}%n@%m %k%F{000}%f " "$(build_left_prompt)"
unfunction sudo
}
@@ -72,7 +72,7 @@ function testContextSegmentWithRootUser() {
# Load Powerlevel9k
source powerlevel9k.zsh-theme
- assertEquals "%K{black} %F{yellow}%n@%m %k%F{black}%f " "$(build_left_prompt)"
+ assertEquals "%K{000} %F{011}%n@%m %k%F{000}%f " "$(build_left_prompt)"
}
function testOverridingContextTemplate() {
@@ -83,7 +83,7 @@ function testOverridingContextTemplate() {
# Load Powerlevel9k
source powerlevel9k.zsh-theme
- assertEquals "%K{black} %F{yellow}xx %k%F{black}%f " "$(build_left_prompt)"
+ assertEquals "%K{000} %F{011}xx %k%F{000}%f " "$(build_left_prompt)"
}
function testContextSegmentIsShownIfDefaultUserIsSetWhenForced() {
@@ -95,7 +95,7 @@ function testContextSegmentIsShownIfDefaultUserIsSetWhenForced() {
# Load Powerlevel9k
source powerlevel9k.zsh-theme
- assertEquals "%K{black} %F{yellow}%n@%m %k%F{black}%f " "$(build_left_prompt)"
+ assertEquals "%K{000} %F{011}%n@%m %k%F{000}%f " "$(build_left_prompt)"
}
function testContextSegmentIsShownIfForced() {
@@ -107,7 +107,7 @@ function testContextSegmentIsShownIfForced() {
# Load Powerlevel9k
source powerlevel9k.zsh-theme
- assertEquals "%K{black} %F{yellow}$(whoami) %k%F{black}%f " "$(build_left_prompt)"
+ assertEquals "%K{000} %F{011}$(whoami) %k%F{000}%f " "$(build_left_prompt)"
}
source shunit2/shunit2 \ No newline at end of file