diff --git a/tmux/formater_test.go b/tmux/formater_test.go index d4b21bc..80e3072 100644 --- a/tmux/formater_test.go +++ b/tmux/formater_test.go @@ -547,6 +547,24 @@ func TestFormat(t *testing.T) { want: "StyleClear" + "StyleBranch" + "SymbolBranch" + "StyleClear" + "StyleBranch" + "branchName", }, + { + name: "hide clean option", + styles: styles{ + Clear: "StyleClear", + Clean: "StyleClean", + }, + symbols: symbols{ + Clean: "SymbolClean", + }, + layout: []string{"flags"}, + st: &gitstatus.Status{ + IsClean: true, + }, + options: options{ + HideClean: true, + }, + want: "StyleClear", + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {