Updated test names to be more consistent with each other and added collection details tests

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent 52739f4da0
commit 1181449cbf
4 changed files with 167 additions and 37 deletions
+13
View File
@@ -374,6 +374,19 @@ mod test_utils {
}
};
}
#[macro_export]
macro_rules! test_handler_delegation {
($base:expr, $active_block:expr) => {
let mut app = App::default();
app.push_navigation_stack($base.clone().into());
app.push_navigation_stack($active_block.clone().into());
RadarrHandler::with(&DEFAULT_KEYBINDINGS.esc.key, &mut app, &$active_block).handle();
assert_eq!(app.get_current_route(), &$base.into());
};
}
}
#[cfg(test)]
mod tests {