mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-15 01:34:26 +02: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:
@ -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"},
|
||||
},
|
||||
|
Reference in New Issue
Block a user