From 7137196788623e4837a6d19e157de707eea04762 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Wed, 30 Apr 2025 17:31:10 +0200 Subject: [PATCH] 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. --- pkg/config/user_config_validation_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/config/user_config_validation_test.go b/pkg/config/user_config_validation_test.go index c02353ea1..813cfc7c8 100644 --- a/pkg/config/user_config_validation_test.go +++ b/pkg/config/user_config_validation_test.go @@ -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"}, },