()
| 506 | |
| 507 | #[test] |
| 508 | fn test_dispatch_compact() { |
| 509 | let reg = CommandRegistry::new(); |
| 510 | let ctx = test_ctx(); |
| 511 | let out = reg.dispatch("/compact", &ctx).unwrap(); |
| 512 | assert!(matches!(out.action, Some(CommandAction::Compact))); |
| 513 | } |
| 514 | |
| 515 | #[test] |
| 516 | fn test_dispatch_unknown() { |