mirror of
https://github.com/arl/gitmux.git
synced 2026-09-10 07:26:18 -04:00
test: hide clean option
This commit is contained in:
parent
5f8ad64c2e
commit
586edf7250
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue