You've already forked powerlevel10k
mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-07-11 14:30:24 +02:00
Fix tests
This commit is contained in:
@ -158,6 +158,10 @@ function testBatterySegmentIfBatteryIsNormalWithAcpiEnabledOnLinux() {
|
|||||||
assertEquals "%K{black} %F{white%}🔋 %f%F{white}50%% (1:38) " "$(prompt_battery left 1 false ${FOLDER})"
|
assertEquals "%K{black} %F{white%}🔋 %f%F{white}50%% (1:38) " "$(prompt_battery left 1 false ${FOLDER})"
|
||||||
|
|
||||||
unalias date &>/dev/null
|
unalias date &>/dev/null
|
||||||
|
# unaliasing date fails where it was never aliased (e.g. on Linux).
|
||||||
|
# This causes the whole test to fail, because the return code is
|
||||||
|
# non-zero.
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function testBatterySegmentIfBatteryIsCalculatingWithAcpiEnabledOnLinux() {
|
function testBatterySegmentIfBatteryIsCalculatingWithAcpiEnabledOnLinux() {
|
||||||
|
@ -16,6 +16,8 @@ function setUp() {
|
|||||||
function tearDown() {
|
function tearDown() {
|
||||||
# Restore old variables
|
# Restore old variables
|
||||||
[[ -n "$OLD_DEFAULT_USER" ]] && DEFAULT_USER=$OLD_DEFAULT_USER
|
[[ -n "$OLD_DEFAULT_USER" ]] && DEFAULT_USER=$OLD_DEFAULT_USER
|
||||||
|
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function testContextSegmentDoesNotGetRenderedWithDefaultUser() {
|
function testContextSegmentDoesNotGetRenderedWithDefaultUser() {
|
||||||
|
Reference in New Issue
Block a user