storkit: merge 392_refactor_extract_shared_transport_utilities_from_matrix_module_into_chat_submodule
This commit is contained in:
@@ -356,14 +356,14 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn start_command_is_registered() {
|
||||
use crate::chat::transport::matrix::commands::commands;
|
||||
use crate::chat::commands::commands;
|
||||
let found = commands().iter().any(|c| c.name == "start");
|
||||
assert!(found, "start command must be in the registry");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn start_command_appears_in_help() {
|
||||
let result = crate::chat::transport::matrix::commands::tests::try_cmd_addressed(
|
||||
let result = crate::chat::commands::tests::try_cmd_addressed(
|
||||
"Timmy",
|
||||
"@timmy:homeserver.local",
|
||||
"@timmy help",
|
||||
@@ -378,7 +378,7 @@ mod tests {
|
||||
#[test]
|
||||
fn start_command_falls_through_to_none_in_registry() {
|
||||
// The start handler in the registry returns None (handled async in bot.rs).
|
||||
let result = crate::chat::transport::matrix::commands::tests::try_cmd_addressed(
|
||||
let result = crate::chat::commands::tests::try_cmd_addressed(
|
||||
"Timmy",
|
||||
"@timmy:homeserver.local",
|
||||
"@timmy start 42",
|
||||
|
||||
Reference in New Issue
Block a user