mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 20:05:50 +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:
parent
66caa25dcd
commit
7137196788
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue