1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-19 14:01:57 +00:00

Fix tests

This commit is contained in:
Dominik Ritter 2018-11-15 13:17:40 +01:00
parent 24818eff79
commit a72a82b4b1
2 changed files with 2 additions and 2 deletions

View file

@ -500,7 +500,7 @@ function testBranchNameScriptingVulnerability() {
git add . 2>/dev/null
git commit -m "Initial commit" >/dev/null
assertEquals "%K{002} %F{000} %f%F{000} \$(./evil_script.sh) %k%F{002}%f " "$(build_left_prompt)"
assertEquals '%K{002} %F{000} $(./evil_script.sh) %k%F{002}%f ' "$(build_left_prompt)"
}
source shunit2/shunit2

View file

@ -214,7 +214,7 @@ function testBranchNameScriptingVulnerability() {
hg add . >/dev/null
hg commit -m "Initial commit" >/dev/null
assertEquals "%K{002} %F{000} \$(./evil_script.sh) %k%F{002}%f " "$(build_left_prompt)"
assertEquals '%K{002} %F{000} $(./evil_script.sh) %k%F{002}%f ' "$(build_left_prompt)"
}
source shunit2/shunit2