From eabe1d7e855817714a9e06b59ff468951413f6c6 Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Thu, 17 Sep 2015 14:16:58 +0100 Subject: Further testing when not in a repo --- test-format-config.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test-format-config.sh') diff --git a/test-format-config.sh b/test-format-config.sh index ea76405..5504ebc 100755 --- a/test-format-config.sh +++ b/test-format-config.sh @@ -68,6 +68,22 @@ prepare_test_repo() { } test_all_options_set_config() { + cd_to_tmp "empty" + export GIT_RADAR_FORMAT="%{branch}%{local}%{changes}" + # Don't test remote as in no repo you will get upstream error message + prepare_zsh_colors + unset_colours + + prompt="$(render_prompt)" + assertEquals "$prompt" "" + + export GIT_RADAR_FORMAT="%{remote}" + # Don't test remote as in no repo you will get upstream error message + prepare_zsh_colors + unset_colours + + prompt="$(render_prompt)" + assertEquals "$prompt" "upstream ⚡" prepare_test_repo export GIT_RADAR_FORMAT="%{remote}%{branch}%{local}%{changes}" -- cgit v1.2.3