]> git.giacomolli.uk - onechat/blobdiff - command_test.go
Submit root events through the local socket
[onechat] / command_test.go
index 602424dfb0815472f2d22246d5c0bffc0b0c485b..73539c0be1183d88a5993c2b035efccc7dc298c2 100644 (file)
@@ -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()