()
| 514 | |
| 515 | #[test] |
| 516 | fn test_dispatch_unknown() { |
| 517 | let reg = CommandRegistry::new(); |
| 518 | let ctx = test_ctx(); |
| 519 | let out = reg.dispatch("/foobar", &ctx).unwrap(); |
| 520 | assert!(out.text.contains("Unknown command")); |
| 521 | } |
| 522 | |
| 523 | #[test] |
| 524 | fn test_not_a_command() { |