X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/0e57dcfc96cd95268d5dd00af7ce0594721d3ded..6c7859cfea123479aba046614ee81028651ddaf5:/command_test.go?ds=inline diff --git a/command_test.go b/command_test.go index 602424d..73539c0 100644 --- a/command_test.go +++ b/command_test.go @@ -28,6 +28,11 @@ func TestHelpListsTheImportTargetFlag(t *testing.T) { require.Contains(t, help, "--agent NAME import into an existing direct child (default: root)") } +func TestHelpListsTheRootNotificationCommand(t *testing.T) { + require.Contains(t, commandOutput(t, "help"), "notify --source SOURCE --id ID --text TEXT") + require.Contains(t, commandOutput(t, "notify", "--help"), "not processed") +} + func commandOutput(t *testing.T, args ...string) string { t.Helper()