summaryrefslogtreecommitdiffstats
path: root/test-format-config.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-09-17 11:52:15 +0100
committerMichael Allen <michael@michaelallen.io>2015-09-17 11:52:59 +0100
commit49d6fcc1190066b38d1684f1cfd1d4fea3190d78 (patch)
tree34653a97afa981d668e84e14df2c7a363dbf59ec /test-format-config.sh
parent1731759cb2a16a3814d9784bae905250c46ce36b (diff)
downloadgit-sonar-49d6fcc1190066b38d1684f1cfd1d4fea3190d78.tar.gz
git-sonar-49d6fcc1190066b38d1684f1cfd1d4fea3190d78.zip
Switch local commits to use prefixes
Diffstat (limited to 'test-format-config.sh')
-rwxr-xr-xtest-format-config.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/test-format-config.sh b/test-format-config.sh
index 8b786c9..036a87b 100755
--- a/test-format-config.sh
+++ b/test-format-config.sh
@@ -75,7 +75,7 @@ test_all_options_set_config() {
unset_colours
prompt="$(render_prompt)"
- assertEquals "$prompt" "m 1 → foo 1↑ 1A"
+ assertEquals "$prompt" "m 1 → foo1↑ 1A"
export GIT_RADAR_FORMAT="%{remote}%{branch}%{changes}"
prepare_zsh_colors
@@ -89,7 +89,7 @@ test_all_options_set_config() {
unset_colours
prompt="$(render_prompt)"
- assertEquals "$prompt" "foo 1↑ 1A"
+ assertEquals "$prompt" "foo1↑ 1A"
export GIT_RADAR_FORMAT="%{branch}%{changes}"
prepare_zsh_colors
@@ -116,21 +116,21 @@ test_reorder_parts() {
unset_colours
prompt="$(render_prompt)"
- assertEquals "foo 1↑ 1Am 1 → " "$prompt"
+ assertEquals "foo1↑ 1Am 1 → " "$prompt"
export GIT_RADAR_FORMAT="%{local}%{changes}%{remote}%{branch}"
prepare_zsh_colors
unset_colours
prompt="$(render_prompt)"
- assertEquals " 1↑ 1Am 1 → foo" "$prompt"
+ assertEquals "1↑ 1Am 1 → foo" "$prompt"
export GIT_RADAR_FORMAT="%{changes}%{remote}%{branch}%{local}"
prepare_zsh_colors
unset_colours
prompt="$(render_prompt)"
- assertEquals " 1Am 1 → foo 1↑" "$prompt"
+ assertEquals " 1Am 1 → foo1↑" "$prompt"
rm_tmp
}
@@ -163,14 +163,14 @@ test_prefix_and_suffix_local() {
unset_colours
prompt="$(render_prompt)"
- assertEquals " 1↑" "$prompt"
+ assertEquals "1↑" "$prompt"
export GIT_RADAR_FORMAT="%{[:local:]}"
prepare_zsh_colors
unset_colours
prompt="$(render_prompt)"
- assertEquals "[ 1↑]" "$prompt"
+ assertEquals "[1↑]" "$prompt"
rm_tmp
}