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