mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-12 16:46:25 -04:00
Add comments in tests to explain what they test
Looking at these again, I needed a moment to remember what they do, so make this more obvious to help future readers.
This commit is contained in:
parent
66caa25dcd
commit
7137196788
|
|
@ -97,7 +97,7 @@ func TestUserConfigValidate_enums(t *testing.T) {
|
|||
config.CustomCommands = []CustomCommand{
|
||||
{
|
||||
Key: "X",
|
||||
Context: "global",
|
||||
Context: "global", // context is not allowed for submenus
|
||||
CommandMenu: []CustomCommand{
|
||||
{Key: "1", Command: "echo 'hello'", Context: "global"},
|
||||
},
|
||||
|
|
@ -115,7 +115,7 @@ func TestUserConfigValidate_enums(t *testing.T) {
|
|||
config.CustomCommands = []CustomCommand{
|
||||
{
|
||||
Key: "X",
|
||||
Subprocess: &falseVal,
|
||||
Subprocess: &falseVal, // other properties are not allowed for submenus (using subprocess as an example)
|
||||
CommandMenu: []CustomCommand{
|
||||
{Key: "1", Command: "echo 'hello'", Context: "global"},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue