summaryrefslogtreecommitdiff
path: root/test/segments
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2019-02-01 19:06:10 +0300
committerGitHub <noreply@github.com>2019-02-01 19:06:10 +0300
commit5c7d1009de08caf7297c099f4ec0cf6d03ae8e6a (patch)
treefc81f9fc287c56cd15b378f27a9538c7024b3a36 /test/segments
parentbd340d4a88797e760efb28c1180254e7779c990f (diff)
parentc56cbb800aceb56f3cf56dfb6e32527fec7e4c2e (diff)
Merge pull request #1148 from dritter/remove_nodeenv_disable_prompt
Remove checking for NODEENV_DISABLE_PROMPT
Diffstat (limited to 'test/segments')
-rwxr-xr-xtest/segments/nodeenv.spec20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/segments/nodeenv.spec b/test/segments/nodeenv.spec
index 3764f1f0..92de81f5 100755
--- a/test/segments/nodeenv.spec
+++ b/test/segments/nodeenv.spec
@@ -44,26 +44,6 @@ function testNodeenvSegmentPrintsNothingIfNodeVirtualEnvIsNotSet() {
unfunction node
}
-function testNodeenvSegmentPrintsNothingIfNodeVirtualEnvDisablePromptIsSet() {
- local -a POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
- POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(nodeenv custom_world)
- local POWERLEVEL9K_CUSTOM_WORLD='echo world'
- node() {
- echo "v1.2.3"
- }
- NODE_VIRTUAL_ENV="node-env"
- NODE_VIRTUAL_ENV_DISABLE_PROMPT=true
-
- # Load Powerlevel9k
- source powerlevel9k.zsh-theme
-
- assertEquals "%K{007} %F{000}world %k%F{007}%f " "$(build_left_prompt)"
-
- unset NODE_VIRTUAL_ENV_DISABLE_PROMPT
- unset NODE_VIRTUAL_ENV
- unfunction node
-}
-
function testNodeenvSegmentPrintsAtLeastNodeEnvWithoutNode() {
local -a POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(nodeenv)